[Libreoffice-commits] core.git: sc/source
Pranav Kant
pranavk at collabora.com
Tue Feb 16 12:43:37 UTC 2016
sc/source/ui/view/gridwin.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit ab199e4748b45384602479c735dbac538e714d34
Author: Pranav Kant <pranavk at collabora.com>
Date: Tue Feb 16 16:12:57 2016 +0530
sc lok: Handle left mouse button up events for tiled rendering
This solves two common problems: 1) Allow selections via mouse drag
2) Deselect when clicked inside already selected block of cells
Change-Id: I9c1b5f90b6c4dc6155b14c68852d6cad81e2290a
Reviewed-on: https://gerrit.libreoffice.org/22391
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Andras Timar <andras.timar at collabora.com>
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 14f46e7..3033915 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -2427,6 +2427,14 @@ void ScGridWindow::MouseButtonUp( const MouseEvent& rMEvt )
pEditView->MouseButtonUp( aEditEvt );
}
}
+
+ if (bIsTiledRendering)
+ {
+ ScTabView* pTabView = pViewData->GetView();
+ if (rMEvt.IsLeft() && pTabView->GetSelEngine()->SelMouseButtonUp( rMEvt ))
+ pTabView->SelectionChanged();
+ }
+
return;
}
More information about the Libreoffice-commits
mailing list