Kaydet (Commit) 7ee8f2e3 authored tarafından Matteo Casalin's avatar Matteo Casalin

Use indexed getToken

Change-Id: I3f30a68653212c9d019c9799961f41e4e54595b3
Reviewed-on: https://gerrit.libreoffice.org/65677
Tested-by: Jenkins
Reviewed-by: 's avatarMatteo Casalin <matteo.casalin@yahoo.com>
üst 7dc8f514
...@@ -2682,10 +2682,11 @@ void SvxCharPositionPage::Reset( const SfxItemSet* rSet ) ...@@ -2682,10 +2682,11 @@ void SvxCharPositionPage::Reset( const SfxItemSet* rSet )
if ( !sUser.isEmpty() ) if ( !sUser.isEmpty() )
{ {
m_nSuperEsc = static_cast<short>(sUser.getToken( 0, ';' ).toInt32()); sal_Int32 nIdx {0};
m_nSubEsc = static_cast<short>(sUser.getToken( 1, ';' ).toInt32()); m_nSuperEsc = static_cast<short>(sUser.getToken( 0, ';', nIdx ).toInt32());
m_nSuperProp = static_cast<sal_uInt8>(sUser.getToken( 2, ';' ).toInt32()); m_nSubEsc = static_cast<short>(sUser.getToken( 0, ';', nIdx ).toInt32());
m_nSubProp = static_cast<sal_uInt8>(sUser.getToken( 3, ';' ).toInt32()); m_nSuperProp = static_cast<sal_uInt8>(sUser.getToken( 0, ';', nIdx ).toInt32());
m_nSubProp = static_cast<sal_uInt8>(sUser.getToken( 0, ';', nIdx ).toInt32());
//fdo#75307 validate all the entries and discard all of them if any are //fdo#75307 validate all the entries and discard all of them if any are
//out of range //out of range
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment