[Libreoffice-commits] core.git: chart2/source

Tomaž Vajngerl tomaz.vajngerl at collabora.co.uk
Thu Apr 20 14:10:05 UTC 2017


 chart2/source/controller/main/ChartController_Window.cxx |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit d30d50e2fdb84b572706f264237db5220ef17e38
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
Date:   Mon Apr 17 19:12:04 2017 +0200

    tdf#107069 don't show "move" cursor on field buttons
    
    Change-Id: I332cc7522eb98345d34cb411642189262d97744c
    Reviewed-on: https://gerrit.libreoffice.org/36735
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>

diff --git a/chart2/source/controller/main/ChartController_Window.cxx b/chart2/source/controller/main/ChartController_Window.cxx
index 441e8da6e682..7aa642c3cdba 100644
--- a/chart2/source/controller/main/ChartController_Window.cxx
+++ b/chart2/source/controller/main/ChartController_Window.cxx
@@ -1826,6 +1826,14 @@ void ChartController::impl_SetMousePointer( const MouseEvent & rEvent )
     sal_uInt16 nModifier = rEvent.GetModifier();
     bool bLeftDown = rEvent.IsLeft();
 
+    // Check if object is for field button and set the normal arrow pointer in this case
+    SdrObject* pObject = m_pDrawViewWrapper->getHitObject(aMousePos);
+    if (pObject && pObject->GetName().startsWith("FieldButton"))
+    {
+        pChartWindow->SetPointer(Pointer(PointerStyle::Arrow));
+        return;
+    }
+
     if ( m_pDrawViewWrapper->IsTextEdit() )
     {
         if( m_pDrawViewWrapper->IsTextEditHit( aMousePos ) )


More information about the Libreoffice-commits mailing list