drawinglayer/source/processor2d/vclprocessor2d.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 6460c685c3bc3f4929263c7681080056b59948fe Author: Pranam Lashkari <lpra...@collabora.com> AuthorDate: Mon Jun 26 22:28:06 2023 +0700 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Tue Jun 27 10:58:10 2023 +0200 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.mcnam...@collabora.com> Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx index 393c4c64d8e8..0fbeb692dd1a 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,7 @@ 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