summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarco Cecchetti <marco.cecchetti@collabora.com>2017-12-13 18:02:01 +0100
committerJan Holesovsky <kendy@collabora.com>2017-12-15 13:56:55 +0100
commit5651eb34534db14851d4107435ca75e8f414124a (patch)
treebb7b97edd35eef249037a1e376d2b7415fbcb07e /sc
parent846bb84d7f517dd9df0eb5b315b77205febbce55 (diff)
lok: sc: append the col, row position to the cell cursor message
Change-Id: I7f8c0e3685c57ff20520ee068b215037f6137389 Reviewed-on: https://gerrit.libreoffice.org/46543 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/gridwin.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 9cd3f117118e..d0710fd96777 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -5761,11 +5761,14 @@ OString ScGridWindow::getCellCursor(const Fraction& rZoomX, const Fraction& rZoo
if (nSizeYPix == 0)
nSizeYPix = 1;
+ long nPosXTw = rtl::math::round(aScrPos.getX() / fPPTX);
+ long nPosYTw = rtl::math::round(aScrPos.getY() / fPPTY);
long nSizeXTw = rtl::math::round(nSizeXPix / fPPTX);
long nSizeYTw = rtl::math::round(nSizeYPix / fPPTY);
- Rectangle aRect(Point(rtl::math::round(aScrPos.getX() / fPPTX), rtl::math::round(aScrPos.getY() / fPPTY)),
- Size(nSizeXTw, nSizeYTw));
+ std::stringstream ss;
+ ss << nPosXTw << ", " << nPosYTw << ", " << nSizeXTw << ", " << nSizeYTw << ", "
+ << nX << ", " << nY;
pViewData->SetZoom(defaultZoomX, defaultZoomY, true);
@@ -5776,7 +5779,7 @@ OString ScGridWindow::getCellCursor(const Fraction& rZoomX, const Fraction& rZoo
pViewData->GetLOKHeightHelper().insert(nY - 1, aScrPos.getY());
pViewData->SetLOKOldCurY(nY);
- return aRect.toString();
+ return ss.str().c_str();
}
void ScGridWindow::updateLibreOfficeKitCellCursor(SfxViewShell* pOtherShell) const