diff options
author | Pranav Kant <pranavk@collabora.com> | 2016-02-16 16:12:57 +0530 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2016-02-16 12:43:11 +0000 |
commit | ab199e4748b45384602479c735dbac538e714d34 (patch) | |
tree | 3e00c16ca72e25b4f440f5befa894cf4d02ae0b3 /sc | |
parent | 7fdd2cca692b66d15258402ecf670285a9449928 (diff) |
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@libreoffice.org>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/gridwin.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index 14f46e718b29..303391516aee 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; } |