summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/core/data/attrib.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/core/data/attrib.cxx b/sc/source/core/data/attrib.cxx
index f3018ef88262..157ee78ea1ab 100644
--- a/sc/source/core/data/attrib.cxx
+++ b/sc/source/core/data/attrib.cxx
@@ -871,7 +871,10 @@ bool ScViewObjectModeItem::GetPresentation
}
SAL_FALLTHROUGH;
case SfxItemPresentation::Nameless:
- rText += ScGlobal::GetRscString(STR_VOBJ_MODE_SHOW+GetValue());
+ if (GetValue() == VOBJ_MODE_SHOW)
+ rText += ScGlobal::GetRscString(STR_VOBJ_MODE_SHOW);
+ else
+ rText += ScGlobal::GetRscString(STR_VOBJ_MODE_HIDE);
return true;
break;