[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.0' - sc/source

Pranav Kant pranavk at collabora.com
Tue Feb 16 12:44:31 UTC 2016


 sc/source/ui/view/gridwin.cxx |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit e4692801bf87984ddc4da42fa4061e36fc007428
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>
    (cherry picked from commit ab199e4748b45384602479c735dbac538e714d34)
    Reviewed-on: https://gerrit.libreoffice.org/22396
    Tested-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 d884af8..55cd7e7 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -2438,6 +2438,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