drawinglayer/source/processor2d/vclprocessor2d.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit cf17d5384cc8e254684bc1423176ad8562d49bee Author: Pranam Lashkari <lpra...@collabora.com> AuthorDate: Mon Jun 26 22:28:06 2023 +0700 Commit: Pranam Lashkari <lpra...@collabora.com> CommitDate: Mon Oct 9 19:12:34 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> (cherry picked from commit 6460c685c3bc3f4929263c7681080056b59948fe) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153654 Tested-by: Jenkins Reviewed-by: Pranam Lashkari <lpra...@collabora.com> 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