summaryrefslogtreecommitdiff
path: root/chart2/source/tools/InternalDataProvider.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/tools/InternalDataProvider.cxx')
-rw-r--r--chart2/source/tools/InternalDataProvider.cxx11
1 files changed, 2 insertions, 9 deletions
diff --git a/chart2/source/tools/InternalDataProvider.cxx b/chart2/source/tools/InternalDataProvider.cxx
index 32dd3c715ab2..7bcb65f0e997 100644
--- a/chart2/source/tools/InternalDataProvider.cxx
+++ b/chart2/source/tools/InternalDataProvider.cxx
@@ -533,10 +533,7 @@ InternalDataProvider::createDataSequenceFromArray( const OUString& rArrayStr, co
{
// Opening quote.
bAllNumeric = false;
- ++p;
- if (p == pEnd)
- break;
- pElem = p;
+ pElem = nullptr;
}
else
{
@@ -552,11 +549,7 @@ InternalDataProvider::createDataSequenceFromArray( const OUString& rArrayStr, co
break;
}
}
- else if (bInQuote)
- {
- // Do nothing.
- }
- else if (*p == ';')
+ else if (*p == ';' and !bInQuote)
{
// element separator.
if (pElem)