diff options
Diffstat (limited to 'sfx2/source/control/charmapcontrol.cxx')
-rw-r--r-- | sfx2/source/control/charmapcontrol.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sfx2/source/control/charmapcontrol.cxx b/sfx2/source/control/charmapcontrol.cxx index 7f757a7eb4df..6534a9b1efc6 100644 --- a/sfx2/source/control/charmapcontrol.cxx +++ b/sfx2/source/control/charmapcontrol.cxx @@ -184,7 +184,6 @@ void SfxCharmapCtrl::updateRecentCharControl() bool SfxCharmapCtrl::EventNotify( NotifyEvent& rNEvt ) { - static bool bNeedsInit = true; if ( maDlgBtn->HasFocus() && rNEvt.GetType() == MouseNotifyEvent::KEYINPUT ) { const vcl::KeyCode& rKey = rNEvt.GetKeyEvent()->GetKeyCode(); @@ -193,14 +192,14 @@ bool SfxCharmapCtrl::EventNotify( NotifyEvent& rNEvt ) { return true; } - if ( bNeedsInit && nCode == KEY_TAB ) + if ( mbNeedsInit && nCode == KEY_TAB ) { for(int i = 0; i < 16; i++) { m_pRecentCharView[i]->set_property( "can-focus", "true" ); m_pFavCharView[i]->set_property( "can-focus", "true" ); } - bNeedsInit = false; + mbNeedsInit = false; } } return SfxPopupWindow::EventNotify( rNEvt ); |