diff options
Diffstat (limited to 'linguistic/source/misc.cxx')
-rw-r--r-- | linguistic/source/misc.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/linguistic/source/misc.cxx b/linguistic/source/misc.cxx index eb10b709e21d..87cdb02721c7 100644 --- a/linguistic/source/misc.cxx +++ b/linguistic/source/misc.cxx @@ -290,11 +290,9 @@ uno::Reference< XDictionaryEntry > SearchDicList( if ( (!bSearchPosDics && eType == DictionaryType_NEGATIVE) || ( bSearchPosDics && eType == DictionaryType_POSITIVE)) { - if ( (xEntry = axDic->getEntry( rWord )).is() ) - { - if (bSearchSpellEntry || lcl_HasHyphInfo( xEntry )) - break; - } + xEntry = axDic->getEntry( rWord ); + if ( xEntry.is() && (bSearchSpellEntry || lcl_HasHyphInfo( xEntry )) ) + break; xEntry = nullptr; } } |