diff options
Diffstat (limited to 'svtools/source/contnr/templwin.cxx')
-rw-r--r-- | svtools/source/contnr/templwin.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/svtools/source/contnr/templwin.cxx b/svtools/source/contnr/templwin.cxx index a57a15a76b21..955ae3d042f8 100644 --- a/svtools/source/contnr/templwin.cxx +++ b/svtools/source/contnr/templwin.cxx @@ -1108,10 +1108,10 @@ void SvtTemplateWindow::UpdateIcons() // ------------------------------------------------------------------------ -long SvtTemplateWindow::PreNotify( NotifyEvent& rNEvt ) +bool SvtTemplateWindow::PreNotify( NotifyEvent& rNEvt ) { sal_uInt16 nType = rNEvt.GetType(); - long nRet = 0; + bool nRet = false; if ( EVENT_KEYINPUT == nType && rNEvt.GetKeyEvent() ) { @@ -1121,15 +1121,15 @@ long SvtTemplateWindow::PreNotify( NotifyEvent& rNEvt ) if ( KEY_BACKSPACE == nCode && !rKeyCode.GetModifier() && pFileWin->HasChildPathFocus() ) { DoAction( TI_DOCTEMPLATE_BACK ); - nRet = 1; + nRet = true; } else if ( pIconWin->ProcessKeyEvent( *rNEvt.GetKeyEvent() ) ) { - nRet = 1; + nRet = true; } } - return nRet ? nRet : Window::PreNotify( rNEvt ); + return nRet || Window::PreNotify( rNEvt ); } // ----------------------------------------------------------------------------- |