summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorPranam Lashkari <lpranam@collabora.com>2023-06-26 22:28:06 +0700
committerPranam Lashkari <lpranam@collabora.com>2023-10-09 19:12:34 +0200
commitcf17d5384cc8e254684bc1423176ad8562d49bee (patch)
tree88d673dc8fd07a053a3598092242fa1b25291087 /drawinglayer
parent72d6287c586a2481c62bf21d88bb363ce584b8dd (diff)
vcl: render scaled fonts for LOK
problem: In online calc when fonts are not scaled, text box disappears when not active Change-Id: I9c8fdb3c0d14a3e7ed502ddb2b46c0769a855280 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153624 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> (cherry picked from commit 6460c685c3bc3f4929263c7681080056b59948fe) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153654 Tested-by: Jenkins Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/processor2d/vclprocessor2d.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx
index 3ad89f1cab63..2c3521ace0dd 100644
--- a/drawinglayer/source/processor2d/vclprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/vclprocessor2d.cxx
@@ -23,6 +23,7 @@
#include "vclhelperbufferdevice.hxx"
#include <cmath>
#include <comphelper/string.hxx>
+#include <comphelper/lok.hxx>
#include <svtools/optionsdrawinglayer.hxx>
#include <tools/debug.hxx>
#include <tools/fract.hxx>
@@ -162,7 +163,8 @@ void VclProcessor2D::RenderTextSimpleOrDecoratedPortionPrimitive2D(
// tdf#153092 Ideally we don't have to scale the font and dxarray, but we might have
// to nevertheless if dealing with non integer sizes
- const bool bScaleFont(aFontSize.getY() != std::round(aFontSize.getY()));
+ const bool bScaleFont(aFontSize.getY() != std::round(aFontSize.getY())
+ || comphelper::LibreOfficeKit::isActive());
vcl::Font aFont;
// Get the VCL font