summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/view/viewdata.cxx14
1 files changed, 6 insertions, 8 deletions
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index 16cf6aa21357..7a4a630d409c 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -2259,15 +2259,13 @@ OString ScViewData::describeCellCursorAt(SCCOL nX, SCROW nY, bool bPixelAligned)
}
else
{
- // make it a slim cell cursor, but not empty
- if (nSizeX == 0)
- nSizeX = TWIPS_PER_PIXEL;
- if (nSizeY == 0)
- nSizeY = TWIPS_PER_PIXEL;
-
+ // look at Rectangle( const Point& rLT, const Size& rSize ) for the decrement.
+ if (nSizeX)
+ --nSizeX;
+ if (nSizeY)
+ --nSizeY;
ss << aCellPos.getX() << ", " << aCellPos.getY()
- // look at Rectangle( const Point& rLT, const Size& rSize ) for the '- 1'
- << ", " << nSizeX - 1 << ", " << nSizeY - 1 << ", "
+ << ", " << nSizeX << ", " << nSizeY << ", "
<< nX << ", " << nY;
}