lok: calc: fix needed when position caching is disabled
commit681f771daf74e3a788cd1be0f85636a57000c46c
authorMarco Cecchetti <mrcekets@gmail.com>
Sat, 27 Oct 2018 17:15:35 +0000 (27 17:15 +0000)
committerJan Holesovsky <kendy@collabora.com>
Wed, 7 Nov 2018 15:31:49 +0000 (7 16:31 +0100)
tree6f1f0b74d7e24836f14455fb76281ac9289afd5c
parentf5ae3fc056408a55365b04d45f98de64b667ab3c
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