summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Francis <dennis.francis@collabora.com>2020-05-24 17:21:59 +0530
committerDennis Francis <dennis.francis@collabora.com>2020-05-25 00:40:00 +0530
commit69a8d8bb6bbeb0e94fe7c4d0314ca937dad52c34 (patch)
treec477b91d5aa41917e52f30f13b8ed560abac38e2
parent6624b551966f47046cac46644427c7271af60a93 (diff)
lokit: do not set an artificial cursor size when it is zero...
when we send the message in print twips coordinates. It is important for the client to know the exact position and coordinates to allow client side print-twips -> tile-twips conversion when/if it is needed. Change-Id: I6699894758886f1b5648ac9bf3c9e6ab4192c72e
-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 4079191db11d..6dd308b33fb0 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -2257,15 +2257,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;
}