summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2010-07-15 14:11:48 +0200
committerNiklas Nebel <nn@openoffice.org>2010-07-15 14:11:48 +0200
commit95552ecffeef703eac55e1095c27962795b55b82 (patch)
tree6edf7307d218cc0aca2c8653883d1fab859e6fe2
parent4adb61dc6bb380ff31e145e6a77c92c0b26b42bd (diff)
calc56: #i113159# check if GetTextEditOutlinerView is null in thesaurus state method
-rwxr-xr-xsd/source/ui/view/drtxtob.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/sd/source/ui/view/drtxtob.cxx b/sd/source/ui/view/drtxtob.cxx
index 8b88be3682e3..0b99201c611a 100755
--- a/sd/source/ui/view/drtxtob.cxx
+++ b/sd/source/ui/view/drtxtob.cxx
@@ -384,10 +384,15 @@ void TextObjectBar::GetAttrState( SfxItemSet& rSet )
case SID_THES:
{
- EditView & rEditView = mpView->GetTextEditOutlinerView()->GetEditView();;
+ OutlinerView* pOLV = mpView->GetTextEditOutlinerView();
String aStatusVal;
LanguageType nLang = LANGUAGE_NONE;
- bool bIsLookUpWord = GetStatusValueForThesaurusFromContext( aStatusVal, nLang, rEditView );
+ bool bIsLookUpWord = false;
+ if ( pOLV )
+ {
+ EditView& rEditView = pOLV->GetEditView();
+ bIsLookUpWord = GetStatusValueForThesaurusFromContext( aStatusVal, nLang, rEditView );
+ }
rSet.Put( SfxStringItem( SID_THES, aStatusVal ) );
// disable "Thesaurus" context menu entry if there is nothing to look up