summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2022-01-19 12:00:21 -0400
committerHenry Castro <hcastro@collabora.com>2022-07-05 19:54:03 +0200
commit5e9f1f1bf905987c172299eb82f4a1f0f5682ee8 (patch)
treed066447323bb40d74f76f3e4ecaaf27450693491 /svx
parentf2af1527c65fbf696c4996a9b4fa68f7f325cf31 (diff)
lok: fix regression "WeldEditView::DoPaint" for dialog tunneling
Change-Id: I1cb345b3911d03dc90acef2a17705d654a06deb0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128622 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136830 Tested-by: Jenkins Reviewed-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/weldeditview.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/svx/source/dialog/weldeditview.cxx b/svx/source/dialog/weldeditview.cxx
index 4d900093b044..7d36ed3c79b9 100644
--- a/svx/source/dialog/weldeditview.cxx
+++ b/svx/source/dialog/weldeditview.cxx
@@ -31,6 +31,7 @@
#include <cppuhelper/supportsservice.hxx>
#include <drawinglayer/processor2d/baseprocessor2d.hxx>
#include <drawinglayer/processor2d/processor2dtools.hxx>
+#include <comphelper/lok.hxx>
#include <editeng/eeitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/fontitem.hxx>
@@ -180,7 +181,9 @@ void WeldEditView::DoPaint(vcl::RenderContext& rRenderContext, const tools::Rect
if (EditView* pEditView = GetEditView())
{
- pEditView->Paint(rRect, &rRenderContext);
+ pEditView->Paint(comphelper::LibreOfficeKit::isActive() ? rRenderContext.PixelToLogic(rRect)
+ : rRect,
+ &rRenderContext);
if (HasFocus())
{