diff options
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/tools/NameContainer.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/tools/NameContainer.cxx b/chart2/source/tools/NameContainer.cxx index d1ed4b0b2b79..a0d2a4fbff7a 100644 --- a/chart2/source/tools/NameContainer.cxx +++ b/chart2/source/tools/NameContainer.cxx @@ -152,7 +152,7 @@ Sequence< OUString > SAL_CALL NameContainer::getElementNames() sal_Int32 nCount = m_aMap.size(); Sequence< OUString > aSeq(nCount); sal_Int32 nN = 0; - for( tContentMap::iterator aIter = m_aMap.begin(); aIter != m_aMap.end(), nN < nCount; ++aIter, ++nN ) + for( tContentMap::iterator aIter = m_aMap.begin(); aIter != m_aMap.end() && nN < nCount; ++aIter, ++nN ) aSeq[nN]=aIter->first; return aSeq; } |