diff options
author | Andras Timar <andras.timar@collabora.com> | 2022-02-03 21:34:30 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2022-02-03 21:34:39 +0100 |
commit | 336e6d9de46e65f6442c8cf80e8c077f1c50d01d (patch) | |
tree | 9fd7816f0b60a41860ed40ee3ebfb593dd2b5079 | |
parent | f2ea6902b4f901b24e3f551c95280123cff662ab (diff) |
Hack to fix size of conditional icon sizes in desktop Calc
Change-Id: I78f7fba71f07ab7a255de14686f5fb09351aef19
-rw-r--r-- | sc/source/ui/view/output.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sc/source/ui/view/output.cxx b/sc/source/ui/view/output.cxx index 7dd94d1b393c..a003ba9abcd8 100644 --- a/sc/source/ui/view/output.cxx +++ b/sc/source/ui/view/output.cxx @@ -916,13 +916,10 @@ void drawIconSets(vcl::RenderContext& rRenderContext, const ScIconSetInfo* pOldI if (pOldIconSetInfo->mnHeight) { - if (bWorksInPixels) + if (bWorksInPixels && comphelper::LibreOfficeKit::isActive()) //FIXME { aHeight = rRenderContext.LogicToPixel(Size(0, pOldIconSetInfo->mnHeight), MapMode(MapUnit::MapTwip)).Height(); - if (comphelper::LibreOfficeKit::isActive()) - { - aHeight *= comphelper::LibreOfficeKit::getDPIScale(); - } + aHeight *= comphelper::LibreOfficeKit::getDPIScale(); } else aHeight = convertTwipToMm100(pOldIconSetInfo->mnHeight); |