[Libreoffice-commits] core.git: sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Feb 4 20:58:02 UTC 2019


 sw/source/uibase/uiview/view.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit f0c7e840b02511d1fffb44ee9fc31b23b1fbb538
Author:     Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Sun Jan 27 19:46:18 2019 +0100
Commit:     Matteo Casalin <matteo.casalin at yahoo.com>
CommitDate: Mon Feb 4 21:57:41 2019 +0100

    Use indexed getToken()
    
    Change-Id: I8484a6a6314d86026fd634e5c770443941aced48
    Reviewed-on: https://gerrit.libreoffice.org/67310
    Tested-by: Jenkins
    Reviewed-by: Matteo Casalin <matteo.casalin at yahoo.com>

diff --git a/sw/source/uibase/uiview/view.cxx b/sw/source/uibase/uiview/view.cxx
index eefb9ed9ee9c..1d96f6c64206 100644
--- a/sw/source/uibase/uiview/view.cxx
+++ b/sw/source/uibase/uiview/view.cxx
@@ -1241,8 +1241,9 @@ void SwView::ReadUserData( const OUString &rUserData, bool bBrowse )
             //apply information from print preview - if available
             if( !m_sNewCursorPos.isEmpty() )
             {
-                long nXTmp = m_sNewCursorPos.getToken( 0, ';' ).toInt32(),
-                     nYTmp = m_sNewCursorPos.getToken( 1, ';' ).toInt32();
+                sal_Int32 nIdx{ 0 };
+                const long nXTmp = m_sNewCursorPos.getToken( 0, ';', nIdx ).toInt32();
+                const long nYTmp = m_sNewCursorPos.getToken( 0, ';', nIdx ).toInt32();
                 Point aCursorPos2( nXTmp, nYTmp );
                 bSelectObj = m_pWrtShell->IsObjSelectable( aCursorPos2 );
 


More information about the Libreoffice-commits mailing list