diff org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/custom/StyleRange.d @ 51:c01d033c633a

[swt lin]
author Frank Benoit <benoit@tionex.de>
date Fri, 27 Mar 2009 19:58:06 +0100
parents f589fc20a5f9
children 536e43f63c81
line wrap: on
line diff
--- a/org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/custom/StyleRange.d	Fri Mar 27 15:30:20 2009 +0100
+++ b/org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/custom/StyleRange.d	Fri Mar 27 19:58:06 2009 +0100
@@ -218,8 +218,7 @@
             buffer.append("normal");
     }
     String str = super.toString();
-    int index = tango.text.Util.locate( str, '{');
-    if( index is str.length ) index = -1;
+    int index = str.indexOf( '{');
     str = str[ index + 1 .. $ ];
     if (str.length > 1) buffer.append(", ");
     buffer.append(str);