[Libreoffice-commits] .: basic/source

August Sodora augsod at kemper.freedesktop.org
Fri Nov 18 19:28:11 PST 2011


 basic/source/comp/scanner.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit edc4118e18f3e7496046636d9f8587f78eed4223
Author: August Sodora <augsod at gmail.com>
Date:   Fri Nov 18 22:27:45 2011 -0500

    Fix scanning bug

diff --git a/basic/source/comp/scanner.cxx b/basic/source/comp/scanner.cxx
index 09e96bc..3336f0d 100644
--- a/basic/source/comp/scanner.cxx
+++ b/basic/source/comp/scanner.cxx
@@ -173,7 +173,7 @@ void SbiScanner::scanGoto()
         if(aTestSym.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("to")))
         {
             aSym = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("goto"));
-            pLine = pLine + (nCol - nTestCol) + 2;
+            pLine += (nTestCol - nCol) + 2;
             nCol = nTestCol + 2;
         }
     }


More information about the Libreoffice-commits mailing list