[Libreoffice-commits] .: sc/source

Thomas Arnhold tarnhold at kemper.freedesktop.org
Wed Feb 9 11:58:20 PST 2011


 sc/source/ui/view/tabview2.cxx |   27 ---------------------------
 1 file changed, 27 deletions(-)

New commits:
commit 9e54264a3e5a44bb5627161a11ac9c30d368fc2e
Author: Thomas Arnhold <thomas at arnhold.org>
Date:   Wed Feb 9 20:57:49 2011 +0100

    Remove static if-statement

diff --git a/sc/source/ui/view/tabview2.cxx b/sc/source/ui/view/tabview2.cxx
index 6c7f09b..df01968 100644
--- a/sc/source/ui/view/tabview2.cxx
+++ b/sc/source/ui/view/tabview2.cxx
@@ -29,14 +29,8 @@
 // MARKER(update_precomp.py): autogen include statement, do not remove
 #include "precompiled_sc.hxx"
 
-
-
-// INCLUDE ---------------------------------------------------------------
-
 #include "scitems.hxx"
 #include <editeng/eeitem.hxx>
-
-
 #include <vcl/timer.hxx>
 #include <vcl/msgbox.hxx>
 #include <sfx2/app.hxx>
@@ -913,27 +907,6 @@ void ScTabView::PaintBlock( BOOL bReset )
                         UpdateSelectionOverlay();
                         bDidReset = TRUE;
                     }
-
-                    //	repaint if controls are touched (#69680# in both cases)
-                    // #i74768# Forms are rendered by DrawingLayer's EndDrawLayers()
-                    static bool bSuppressControlExtraStuff(true);
-
-                    if(!bSuppressControlExtraStuff)
-                    {
-                        Rectangle aMMRect = pDoc->GetMMRect(nBlockStartX,nBlockStartY,nBlockEndX,nBlockEndY, nTab);
-                        if (pDoc->HasControl( nTab, aMMRect ))
-                        {
-                            for (i=0; i<4; i++)
-                            {
-                                if (pGridWin[i] && pGridWin[i]->IsVisible())
-                                {
-                                    //	MapMode muss logischer (1/100mm) sein !!!
-                                    pDoc->InvalidateControls( pGridWin[i], nTab, aMMRect );
-                                    pGridWin[i]->Update();
-                                }
-                            }
-                        }
-                    }
                 }
             }
             else


More information about the Libreoffice-commits mailing list