diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-09-27 14:47:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-09-27 17:47:41 +0200 |
commit | 1f09bf7bee753d34953fcefd6e2ee05797bf4b0a (patch) | |
tree | ba5eba24ed23cd68af77aecdef0fd698537304c7 /xmloff/source | |
parent | fe9390fcfbadfce119a3dd8e2ed676f35c737098 (diff) |
crashtesting: assert on converting ooo64499-3.sxc to ods
a problem since:
commit 776ea34deefe7bdce2fb8a06e5c55ef27ec87ea7
Date: Wed Sep 21 11:09:46 2022 +0200
use more string_view in xmloff
Change-Id: Ifec0f4c84373aa4501acfde2fd357fd749f836c1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140654
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/chart/SchXMLChartContext.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/chart/SchXMLChartContext.cxx b/xmloff/source/chart/SchXMLChartContext.cxx index 2fe91b2026a1..7a8ac46c40a9 100644 --- a/xmloff/source/chart/SchXMLChartContext.cxx +++ b/xmloff/source/chart/SchXMLChartContext.cxx @@ -182,12 +182,12 @@ uno::Sequence< sal_Int32 > lcl_getNumberSequenceFromString( std::u16string_view while( nPos != std::u16string_view::npos ) { nPos = rStr.find( aSpace, nLastPos ); - if( nPos > nLastPos ) - { - aVec.push_back( o3tl::toInt32(rStr.substr( nLastPos, (nPos - nLastPos) )) ); - } if( nPos != std::u16string_view::npos ) + { + if( nPos > nLastPos ) + aVec.push_back( o3tl::toInt32(rStr.substr( nLastPos, (nPos - nLastPos) )) ); nLastPos = nPos + 1; + } } // last entry if( nLastPos != 0 && |