summaryrefslogtreecommitdiff
path: root/formula/source/ui
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-07-05 18:10:39 +0200
committerEike Rathke <erack@redhat.com>2017-07-05 18:19:32 +0200
commit6865f4618b6ddcc7dd5688e64e9cdd3f3064dea7 (patch)
tree7dbc08d0b74be3417a4c62624e3c4e3f288ab0df /formula/source/ui
parent2c4b66454d329fc3ba8632bc79dd49ce53459552 (diff)
Make that debuggable despite AnyInput() pending
Somehow opening the Function Wizard always still has a keyboard input pending when breaking in the debugger so the first calculateValue() call was bypassed. Change-Id: I1ad2fdf1724ae793edc7497895c8d8cead733f86
Diffstat (limited to 'formula/source/ui')
-rw-r--r--formula/source/ui/dlg/formula.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/formula/source/ui/dlg/formula.cxx b/formula/source/ui/dlg/formula.cxx
index ae44642e461b..7326a6e568bf 100644
--- a/formula/source/ui/dlg/formula.cxx
+++ b/formula/source/ui/dlg/formula.cxx
@@ -547,7 +547,10 @@ bool FormulaDlg_Impl::CalcValue( const OUString& rStrExp, OUString& rStrResult,
{
// Only calculate the value when there isn't any more keyboard input:
- if ( !Application::AnyInput( VclInputFlags::KEYBOARD ) )
+ // Make this debuggable by assigning to a variable that can be changed
+ // from within the debugger.
+ bool bInput = Application::AnyInput( VclInputFlags::KEYBOARD );
+ if ( !bInput )
{
bResult = m_pHelper->calculateValue( rStrExp, rStrResult, bForceMatrixFormula || m_pBtnMatrix->IsChecked());
}