summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2022-08-01 16:06:11 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2022-08-04 11:08:02 +0200
commit39e3a346c0978625a7f84fd2db647d4c164071ca (patch)
treed8a6fef1a52241d5a26c97c5aaed1f6fa3517741 /svx/source
parentbcabb3d1891fc67fb4e4b35642c2d55340994ecc (diff)
lok: Dont render active text edit on slide previews
- extend ITiledRenderable interface to pass active text edit drawing state to the SdXImpressDocument - when painting tiles - allow text edit only for current part - pass new setting also to SdrPaintView where painting happens Change-Id: Ib4ff226961a76129f4f5ff11c90694cd46a83a6b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137676 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Mert Tumer <mert.tumer@collabora.com>
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/svdraw/svdpntv.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdpntv.cxx b/svx/source/svdraw/svdpntv.cxx
index a069edfe3362..68345e345bdc 100644
--- a/svx/source/svdraw/svdpntv.cxx
+++ b/svx/source/svdraw/svdpntv.cxx
@@ -163,6 +163,7 @@ SdrPaintView::SdrPaintView(SdrModel& rSdrModel, OutputDevice* pOut)
, mbHideChart(false)
, mbHideDraw(false)
, mbHideFormControl(false)
+ , mbPaintTextEdit(true)
, maGridColor(COL_BLACK)
{
maComeBackIdle.SetPriority(TaskPriority::REPAINT);
@@ -640,7 +641,8 @@ void SdrPaintView::EndCompleteRedraw(SdrPaintWindow& rPaintWindow, bool bPaintFo
// early and paint text edit to window.
if(IsTextEdit() && GetSdrPageView())
{
- static_cast< SdrView* >(this)->TextEditDrawing(rPaintWindow);
+ if (!comphelper::LibreOfficeKit::isActive() || mbPaintTextEdit)
+ static_cast< SdrView* >(this)->TextEditDrawing(rPaintWindow);
}
if (comphelper::LibreOfficeKit::isActive())