[Libreoffice-commits] core.git: Branch 'feature/tiled-editing' - sc/source

Jan Holesovsky kendy at collabora.com
Tue Mar 24 01:44:48 PDT 2015


 sc/source/ui/view/gridwin.cxx |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

New commits:
commit b5bd68b1742458a72f1ca3bbb1c6dae4e71cc7a4
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Tue Mar 24 09:43:29 2015 +0100

    Revert "sc tiled editing: Limit the mouse events only to the document size."
    
    Pushed too early; we are able to get this mis-behavior even other ways than
    just using a mouse click, we really need to fix the root cause now.
    
    This reverts commit c2596244325bb566dd460ada29207d0c05b83293.

diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index a89d4e1..3bbe8b8 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -2426,11 +2426,7 @@ void ScGridWindow::LogicMouseButtonDown(const MouseEvent& rMouseEvent)
     (void)rDoc;
     assert(rDoc.GetDrawLayer()->isTiledRendering());
 
-    // Don't allow events outside of our viewport size.
-    // FIXME this will likely cause trouble when we allow extending the
-    // document size; but for now this is necessary to workaround a problem
-    if ( rMouseEvent.GetPosPixel().X() < GetOutputSizePixel().Width() && rMouseEvent.GetPosPixel().Y() < GetOutputSizePixel().Height())
-        MouseButtonDown(rMouseEvent);
+    MouseButtonDown(rMouseEvent);
 }
 
 void ScGridWindow::LogicMouseButtonUp(const MouseEvent& rMouseEvent)


More information about the Libreoffice-commits mailing list