svx/source/svdraw/svdedxv.cxx | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-)
New commits: commit 4c3ea873d683e757c99bdca7044f7d9665ee7aa2 Author: Caolán McNamara <[email protected]> AuthorDate: Mon Jan 5 09:14:23 2026 +0000 Commit: Miklos Vajna <[email protected]> CommitDate: Tue Jan 6 08:53:24 2026 +0100 comphelper::LibreOfficeKit::isActive() is always true in this branch given the earlier !comphelper::LibreOfficeKit::isActive() check, so simplify here Change-Id: I5f95035cce6d2d4e763bd1dc4be2eae2bcd35a39 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196536 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Miklos Vajna <[email protected]> diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx index eeaf6ee95bed..477bf25cc7df 100644 --- a/svx/source/svdraw/svdedxv.cxx +++ b/svx/source/svdraw/svdedxv.cxx @@ -943,27 +943,15 @@ void SdrObjEditView::TextEditDrawing(SdrPaintWindow& rPaintWindow) const vcl::Region& rRedrawRegion = rPaintWindow.GetRedrawRegion(); const tools::Rectangle aCheckRect(rRedrawRegion.GetBoundRect()); - for (sal_uInt32 i(0); i < nViewCount; i++) + if (sal_uInt32 i(0); i < nViewCount) { OutlinerView* pOLV = pActiveOutliner->GetView(i); - - // If rPaintWindow knows that the output device is a render - // context and is aware of the underlying vcl::Window, - // compare against that; that's how double-buffering can - // still find the matching OutlinerView. - OutputDevice* pOutputDevice = rPaintWindow.GetWindow() - ? rPaintWindow.GetWindow()->GetOutDev() - : &rPaintWindow.GetOutputDevice(); - if (pOLV->GetWindow()->GetOutDev() == pOutputDevice - || comphelper::LibreOfficeKit::isActive()) - { - SdrPage* pPage = GetSdrPageView()->GetPage(); - pOLV->SetBackgroundColor( - pPage->GetPageBackgroundColor(GetSdrPageView(), true)); - ImpPaintOutlinerView(*pOLV, aCheckRect, - rPaintWindow.GetTargetOutputDevice()); - return; - } + SdrPage* pPage = GetSdrPageView()->GetPage(); + pOLV->SetBackgroundColor( + pPage->GetPageBackgroundColor(GetSdrPageView(), true)); + ImpPaintOutlinerView(*pOLV, aCheckRect, + rPaintWindow.GetTargetOutputDevice()); + return; } } }
