diff options
-rw-r--r-- | sfx2/source/appl/childwin.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/appl/childwin.cxx b/sfx2/source/appl/childwin.cxx index 50d9371907d7..ca2919cf263e 100644 --- a/sfx2/source/appl/childwin.cxx +++ b/sfx2/source/appl/childwin.cxx @@ -132,8 +132,9 @@ bool GetSplitSizeFromString( const OUString& rStr, Size& rSize ) if ( nCount != 2 ) return false; - rSize.setWidth( aStr.getToken(0, ';' ).toInt32() ); - rSize.setHeight( aStr.getToken(1, ';' ).toInt32() ); + sal_Int32 nIdx{ 0 }; + rSize.setWidth( aStr.getToken(0, ';', nIdx ).toInt32() ); + rSize.setHeight( aStr.getToken(0, ';', nIdx ).toInt32() ); // negative sizes are invalid return !(rSize.Width() < 0 || rSize.Height() < 0); |