diff options
author | Eike Rathke <erack@redhat.com> | 2016-12-06 01:27:00 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-12-06 01:28:17 +0100 |
commit | 63bf040056b64e0bf32a36277c54deee566de4fc (patch) | |
tree | 99d59890ca50622b718b24daf1691879997cd0d7 | |
parent | a9f56091b6422ec8c42f09b8472200ae4ab12548 (diff) |
use IncCol() IncRow()
Change-Id: Ibae425df118ad222db2740b51040d7a6c65b2aa6
-rw-r--r-- | sc/source/filter/oox/worksheethelper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/oox/worksheethelper.cxx b/sc/source/filter/oox/worksheethelper.cxx index db9ae6e421cd..f159cea5fe27 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() ); |