diff options
-rw-r--r-- | sc/source/ui/app/inputwin.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx index b37e3765dd43..d79e28050c9a 100644 --- a/sc/source/ui/app/inputwin.cxx +++ b/sc/source/ui/app/inputwin.cxx @@ -1056,7 +1056,8 @@ IMPL_LINK_NOARG_TYPED(ScInputBarGroup, ClickHdl, Button*, void) TriggerToolboxLayout(); // Restore focus to input line(s) if necessary - if ( SC_MOD()->GetInputHdl()->IsTopMode() ) + ScInputHandler* pHdl = SC_MOD()->GetInputHdl(); + if ( pHdl && pHdl->IsTopMode() ) maTextWnd->GrabFocus(); } |