diff dwtx/jface/resource/StringConverter.d @ 70:46a6e0e6ccd4

Merge with d-fied sources of 3.4M7
author Frank Benoit <benoit@tionex.de>
date Thu, 22 May 2008 01:36:46 +0200
parents 8a302fdb4140
children 7ffeace6c47f
line wrap: on
line diff
--- a/dwtx/jface/resource/StringConverter.d	Mon May 19 13:41:06 2008 +0200
+++ b/dwtx/jface/resource/StringConverter.d	Thu May 22 01:36:46 2008 +0200
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2000, 2006 IBM Corporation and others.
+ * Copyright (c) 2000, 2007 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -556,9 +556,9 @@
         if( stok.length < 3 ){
             throw new DataFormatException( "not enough values" );
         }
-        String red = stok[0];
-        String green = stok[1];
-        String blue = stok[2];
+        String red = stok[0].trim();
+        String green = stok[1].trim();
+        String blue = stok[2].trim();
         int rval = 0, gval = 0, bval = 0;
         try {
             rval = tango.text.convert.Integer.toInt(red);