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

Eike Rathke erack at redhat.com
Tue Dec 6 00:28:50 UTC 2016


 sc/source/filter/oox/worksheethelper.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 63bf040056b64e0bf32a36277c54deee566de4fc
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Dec 6 01:27:00 2016 +0100

    use IncCol() IncRow()
    
    Change-Id: Ibae425df118ad222db2740b51040d7a6c65b2aa6

diff --git a/sc/source/filter/oox/worksheethelper.cxx b/sc/source/filter/oox/worksheethelper.cxx
index db9ae6e..f159cea 100644
--- a/sc/source/filter/oox/worksheethelper.cxx
+++ b/sc/source/filter/oox/worksheethelper.cxx
@@ -686,9 +686,9 @@ ScRange WorksheetGlobals::getCellRangeFromRectangle( const awt::Rectangle& rRect
             the rectangle ends exactly between two columns or rows. */
         awt::Point aEndPos = getCellPosition( aEndAddr.Col(), aEndAddr.Row() );
         if( bMultiCols && (aBotRight.X <= aEndPos.X) )
-            aEndAddr.SetCol( aEndAddr.Col() - 1 );
+            aEndAddr.IncCol(-1);
         if( bMultiRows && (aBotRight.Y <= aEndPos.Y) )
-            aEndAddr.SetRow( aEndAddr.Row() - 1 );
+            aEndAddr.IncRow(-1);
     }
     return ScRange( aStartAddr.Col(), aStartAddr.Row(), getSheetIndex(),
                     aEndAddr.Col(), aEndAddr.Row(), getSheetIndex() );


More information about the Libreoffice-commits mailing list