vcl/source/control/imivctl1.cxx |    2 --
 1 file changed, 2 deletions(-)

New commits:
commit 1d98bf6caaf4582f53e3a3eb57306a95633bbb6d
Author:     Christopher Sherlock <chris.sherloc...@gmail.com>
AuthorDate: Mon Dec 23 17:55:04 2024 +1100
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Wed Feb 26 17:30:06 2025 +0100

    vcl: remove commented out code
    
    The original code was from 2001, in commit aed8f7e44502be1:
    
        // in der Detailsview muss das Invalidieren intelligenter erfolgen
        //if( !(nWinBits & WB_DETAILS ))
            pView->Invalidate( INVALIDATE_NOCHILDREN );
    
    This was later translated in commit 25d571fff37ee35.
    
    The reason for the comment is now lost in the mists of time...
    
    Change-Id: I91ea3d2e918ee73ed8d017ca15c6cbbeb00e791f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179208
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>
    Tested-by: Jenkins

diff --git a/vcl/source/control/imivctl1.cxx b/vcl/source/control/imivctl1.cxx
index 3da69ebbedd0..c62e9124a08e 100644
--- a/vcl/source/control/imivctl1.cxx
+++ b/vcl/source/control/imivctl1.cxx
@@ -327,8 +327,6 @@ void SvxIconChoiceCtrl_Impl::ImpArrange()
     SetOrigin( Point() );
     VisRectChanged();
     RecalcAllBoundingRectsSmart();
-    // TODO: the invalidation in the detail view should be more intelligent
-    //if( !(nWinBits & WB_DETAILS ))
     pView->Invalidate( InvalidateFlags::NoChildren );
     nFlags &= ~IconChoiceFlags::Arranging;
     ShowCursor( true );

Reply via email to