diff options
author | Hans-Joachim Lankenau <hjs@openoffice.org> | 2010-12-17 13:36:59 +0100 |
---|---|---|
committer | Hans-Joachim Lankenau <hjs@openoffice.org> | 2010-12-17 13:36:59 +0100 |
commit | 0feae64efb6e6330ad2236d5eeb6d9678ea6fb98 (patch) | |
tree | 64225de00225469117e0908343c63c7c5d47b6f7 /framework/source/fwi/helper | |
parent | 94160afa68a6bf633c5fb14944c5f239187fa7c1 (diff) | |
parent | 75b47018bbe9e37d00ae2af2e6011b463a60a21e (diff) |
CWS-TOOLING: integrate CWS mib19
Diffstat (limited to 'framework/source/fwi/helper')
-rw-r--r-- | framework/source/fwi/helper/mischelper.cxx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/framework/source/fwi/helper/mischelper.cxx b/framework/source/fwi/helper/mischelper.cxx index deb5aa023c1b..0f835abdfeac 100644 --- a/framework/source/fwi/helper/mischelper.cxx +++ b/framework/source/fwi/helper/mischelper.cxx @@ -127,14 +127,17 @@ uno::Reference< linguistic2::XLanguageGuessing > LanguageGuessingHelper::GetGues { rtl::OUString aStr; Sequence< PropertyValue > aPropSeq; - if ( _xUICommandLabels->getByName( aCmdURL ) >>= aPropSeq ) + if( _xUICommandLabels->hasByName( aCmdURL ) ) { - for ( sal_Int32 i = 0; i < aPropSeq.getLength(); i++ ) + if ( _xUICommandLabels->getByName( aCmdURL ) >>= aPropSeq ) { - if ( aPropSeq[i].Name.equalsAscii( _pName/*"Label"*/ )) + for ( sal_Int32 i = 0; i < aPropSeq.getLength(); i++ ) { - aPropSeq[i].Value >>= aStr; - break; + if ( aPropSeq[i].Name.equalsAscii( _pName/*"Label"*/ )) + { + aPropSeq[i].Value >>= aStr; + break; + } } } } |