You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by al...@apache.org on 2013/05/29 15:10:27 UTC

svn commit: r1487472 - /openoffice/trunk/main/xmloff/source/draw/ximpcustomshape.cxx

Author: alg
Date: Wed May 29 13:10:27 2013
New Revision: 1487472

URL: http://svn.apache.org/r1487472
Log:
i121507 Added commata to whitespace list

Modified:
    openoffice/trunk/main/xmloff/source/draw/ximpcustomshape.cxx

Modified: openoffice/trunk/main/xmloff/source/draw/ximpcustomshape.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/xmloff/source/draw/ximpcustomshape.cxx?rev=1487472&r1=1487471&r2=1487472&view=diff
==============================================================================
--- openoffice/trunk/main/xmloff/source/draw/ximpcustomshape.cxx (original)
+++ openoffice/trunk/main/xmloff/source/draw/ximpcustomshape.cxx Wed May 29 13:10:27 2013
@@ -410,9 +410,24 @@ sal_Bool GetNextParameter( com::sun::sta
 		}
 	}
 	if ( bValid )
-	{	// skipping white spaces
-		while( ( nIndex < rParaString.getLength() ) && rParaString[ nIndex ] == (sal_Unicode)' ' )
-			nIndex++;
+	{
+        // skipping white spaces and commatas (#121507#)
+        const sal_Unicode aSpace(sal_Unicode(' '));
+        const sal_Unicode aCommata(sal_Unicode(','));
+
+        while(nIndex < rParaString.getLength())
+        {
+            const sal_Unicode aCandidate(rParaString[nIndex]);
+
+            if(aSpace == aCandidate || aCommata == aCandidate)
+            {
+                nIndex++;
+            }
+            else
+            {
+                break;
+            }
+        }
 	}
 	return bValid;
 }