diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-10-25 21:00:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-10-25 21:00:26 +0100 |
commit | a4939e9e4178dbc1bf83a641cb7a5ba97da2edb2 (patch) | |
tree | 3b64c3618f3af110ac6f011b475ea30d77e05372 | |
parent | ed0080c9272f26d8c2197b74181768dc166523da (diff) |
#i109882# return early in unlikely event of failure
-rw-r--r-- | cui/source/tabpages/chardlg.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx index 469f4fbbfb6d..e0356b2b5391 100644 --- a/cui/source/tabpages/chardlg.cxx +++ b/cui/source/tabpages/chardlg.cxx @@ -923,6 +923,7 @@ void SvxCharNamePage::FillStyleBox_Impl( const FontNameBox* pNameBox ) else { DBG_ERRORFILE( "invalid font name box" ); + return; } pStyleBox->Fill( pNameBox->GetText(), pFontList ); @@ -969,6 +970,7 @@ void SvxCharNamePage::FillSizeBox_Impl( const FontNameBox* pNameBox ) else { DBG_ERRORFILE( "invalid font name box" ); + return; } FontInfo _aFontInfo( pFontList->Get( pNameBox->GetText(), pStyleBox->GetText() ) ); |