From 681f771daf74e3a788cd1be0f85636a57000c46c Mon Sep 17 00:00:00 2001 From: Marco Cecchetti Date: Sat, 27 Oct 2018 17:15:35 +0000 Subject: [PATCH] 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) --- sc/source/ui/view/tabview.cxx | 4 ++-- 1 file 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); -- 2.11.4.GIT