summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-10-18 20:38:39 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-10-19 10:05:44 +0200
commitdcb164b62032c389568c8114801cd0763b742852 (patch)
treeb274c70ead9265434a32bfc380db88d9b2b53507 /chart2
parent5ebef042bd44e9babd58f53b4458616aa3215beb (diff)
release mouse before launching dialog
Change-Id: If2076aeef81b8354ceb231d6551bc06edb46f7b2 Reviewed-on: https://gerrit.libreoffice.org/61956 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/main/ChartController_Window.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/chart2/source/controller/main/ChartController_Window.cxx b/chart2/source/controller/main/ChartController_Window.cxx
index 7e006d5f2cc1..5b3cf24ad57a 100644
--- a/chart2/source/controller/main/ChartController_Window.cxx
+++ b/chart2/source/controller/main/ChartController_Window.cxx
@@ -899,6 +899,10 @@ void ChartController::execute_MouseButtonUp( const MouseEvent& rMEvt )
else
m_aSelection.resetPossibleSelectionAfterSingleClickWasEnsured();
}
+
+ //@todo ForcePointer(&rMEvt);
+ pChartWindow->ReleaseMouse();
+
// In tiled rendering drag mode could be not yet over on the call
// that should handle the double-click, so better to perform this check
// always.
@@ -908,9 +912,6 @@ void ChartController::execute_MouseButtonUp( const MouseEvent& rMEvt )
execute_DoubleClick( &aMousePixel );
}
- //@todo ForcePointer(&rMEvt);
- pChartWindow->ReleaseMouse();
-
if( m_aSelection.isSelectionDifferentFromBeforeMouseDown() )
bNotifySelectionChange = true;
}