summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-03-24 09:43:29 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-03-30 09:23:42 +0200
commitbde275aa7db0e1e650b0b566ea765293b1698b31 (patch)
tree74c3e61c5bb5b94bc966ae31916418273a8391b8 /sc
parente0fd364a3c49650c9cade1933dfdd96627d853a0 (diff)
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.
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/gridwin.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index a4e161847a64..acb6bd2c4459 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)