summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Cecchetti <mrcekets@gmail.com>2018-10-27 17:15:35 +0000
committerJan Holesovsky <kendy@collabora.com>2018-11-07 16:31:49 +0100
commit681f771daf74e3a788cd1be0f85636a57000c46c (patch)
tree6f1f0b74d7e24836f14455fb76281ac9289afd5c
parentf5ae3fc056408a55365b04d45f98de64b667ab3c (diff)
lok: calc: fix needed when position caching is disabled
In case it would be needed to disable position caching we can't retrieve the nTotalPixels value from the LOKHeight/WidthHelper. The new code works in both cases. Change-Id: I65562dd4458eee40c5db958067fc91af6b3eb79e (cherry picked from commit 2cadae31dc3b041650d89c94225923ba3839e8c1)
-rw-r--r--sc/source/ui/view/tabview.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx
index 7c730e7d0a29..520dafa3cd18 100644
--- a/sc/source/ui/view/tabview.cxx
+++ b/sc/source/ui/view/tabview.cxx
@@ -2589,7 +2589,7 @@ OUString ScTabView::getRowColumnHeaders(const tools::Rectangle& rRectangle)
aBuffer.append("\"rows\": [\n");
- long nTotalPixels = aViewData.GetLOKHeightHelper().getPosition(nStartRow);
+ long nTotalPixels = nStartHeightPx;
SAL_INFO("sc.lok.header", "Row Header: [create string data for rows]: start row: "
<< nStartRow << " start height: " << nTotalPixels);
@@ -2728,7 +2728,7 @@ OUString ScTabView::getRowColumnHeaders(const tools::Rectangle& rRectangle)
aBuffer.append("\"columns\": [\n");
- nTotalPixels = aViewData.GetLOKWidthHelper().getPosition(nStartCol);
+ nTotalPixels = nStartWidthPx;
SAL_INFO("sc.lok.header", "Col Header: [create string data for cols]: start col: "
<< nStartRow << " start width: " << nTotalPixels);