renaissance1: #i112337# Included fix from other CWS.
This commit is contained in:
@@ -383,6 +383,8 @@ void TextObjectBar::GetAttrState( SfxItemSet& rSet )
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case SID_THES:
|
case SID_THES:
|
||||||
|
{
|
||||||
|
if( mpView && mpView->GetTextEditOutlinerView() )
|
||||||
{
|
{
|
||||||
EditView & rEditView = mpView->GetTextEditOutlinerView()->GetEditView();;
|
EditView & rEditView = mpView->GetTextEditOutlinerView()->GetEditView();;
|
||||||
String aStatusVal;
|
String aStatusVal;
|
||||||
@@ -396,7 +398,11 @@ void TextObjectBar::GetAttrState( SfxItemSet& rSet )
|
|||||||
if (!bIsLookUpWord ||
|
if (!bIsLookUpWord ||
|
||||||
!xThes.is() || nLang == LANGUAGE_NONE || !xThes->hasLocale( aLocale ))
|
!xThes.is() || nLang == LANGUAGE_NONE || !xThes->hasLocale( aLocale ))
|
||||||
rSet.DisableItem( SID_THES );
|
rSet.DisableItem( SID_THES );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
rSet.DisableItem( SID_THES );
|
||||||
|
}
|
||||||
//! avoid puting the same item as SfxBoolItem at the end of this function
|
//! avoid puting the same item as SfxBoolItem at the end of this function
|
||||||
nSlotId = 0;
|
nSlotId = 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user