From b2a12a87963b3404af71d9afaf70271010c11c6d Mon Sep 17 00:00:00 2001
From: Armin Le Grand <alg@apache.org>
Date: Wed, 29 May 2013 13:10:27 +0000
Subject: Resolves: #i121507# Added comma to whitespace list

(cherry picked from commit c9e446d6f79908ed4af06e7940788e91b924b793)

Change-Id: I790bfada597e276f9f9e1d07f7208db6d1059f0f
---
 xmloff/source/draw/ximpcustomshape.cxx | 21 ++++++++++++++++++---
 1 file changed, 18 insertions(+), 3 deletions(-)

(limited to 'xmloff')

diff --git a/xmloff/source/draw/ximpcustomshape.cxx b/xmloff/source/draw/ximpcustomshape.cxx
index 5dd0f00ef5e9..64ac91b9c881 100644
--- a/xmloff/source/draw/ximpcustomshape.cxx
+++ b/xmloff/source/draw/ximpcustomshape.cxx
@@ -418,9 +418,24 @@ sal_Bool GetNextParameter( com::sun::star::drawing::EnhancedCustomShapeParameter
         }
     }
     if ( bValid )
-    {   // skipping white spaces
-        while( ( nIndex < rParaString.getLength() ) && rParaString[ nIndex ] == (sal_Unicode)' ' )
-            nIndex++;
+    {
+        // skipping white spaces and commas (#i121507#)
+        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;
 }
-- 
cgit