diff options
Diffstat (limited to 'cui/source/customize/macropg.cxx')
-rw-r--r-- | cui/source/customize/macropg.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cui/source/customize/macropg.cxx b/cui/source/customize/macropg.cxx index b0b964c6f794..c50b487a200a 100644 --- a/cui/source/customize/macropg.cxx +++ b/cui/source/customize/macropg.cxx @@ -123,7 +123,8 @@ bool MacroEventListBox::Notify( NotifyEvent& rNEvt ) if( rNEvt.GetType() == MouseNotifyEvent::GETFOCUS ) { if ( rNEvt.GetWindow() != maListBox.get() ) - maListBox->GrabFocus(); + if (maListBox) + maListBox->GrabFocus(); } return nRet; |