svx/source/svdraw/svdedxv.cxx |   14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

New commits:
commit a5f0199bdf8a2e3b75157c0394e12f7ef142bab8
Author:     Caolán McNamara <[email protected]>
AuthorDate: Mon Jan 5 09:18:18 2026 +0000
Commit:     Miklos Vajna <[email protected]>
CommitDate: Tue Jan 6 11:20:41 2026 +0100

    nViewCount is always > 0 here
    
    so simplify
    
    Change-Id: Ie0e34d1c58e4a6e7b4c2fce5793b41e8f88e142d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196537
    Reviewed-by: Miklos Vajna <[email protected]>
    Tested-by: Jenkins CollaboraOffice <[email protected]>

diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx
index 477bf25cc7df..cea9543b42a7 100644
--- a/svx/source/svdraw/svdedxv.cxx
+++ b/svx/source/svdraw/svdedxv.cxx
@@ -943,16 +943,10 @@ void SdrObjEditView::TextEditDrawing(SdrPaintWindow& 
rPaintWindow)
                     const vcl::Region& rRedrawRegion = 
rPaintWindow.GetRedrawRegion();
                     const tools::Rectangle 
aCheckRect(rRedrawRegion.GetBoundRect());
 
-                    if (sal_uInt32 i(0); i < nViewCount)
-                    {
-                        OutlinerView* pOLV = pActiveOutliner->GetView(i);
-                        SdrPage* pPage = GetSdrPageView()->GetPage();
-                        pOLV->SetBackgroundColor(
-                            pPage->GetPageBackgroundColor(GetSdrPageView(), 
true));
-                        ImpPaintOutlinerView(*pOLV, aCheckRect,
-                                             
rPaintWindow.GetTargetOutputDevice());
-                        return;
-                    }
+                    OutlinerView* pOLV = pActiveOutliner->GetView(0);
+                    SdrPage* pPage = GetSdrPageView()->GetPage();
+                    
pOLV->SetBackgroundColor(pPage->GetPageBackgroundColor(GetSdrPageView(), true));
+                    ImpPaintOutlinerView(*pOLV, aCheckRect, 
rPaintWindow.GetTargetOutputDevice());
                 }
             }
         }

Reply via email to