summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-07-23 19:33:36 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-07-23 19:33:36 +0100
commit29bb9775ce5443d5f4929471fa2cd85d8e6d6c45 (patch)
tree710de93a1119792c7f36e93c33c8c8ac913683fb /sc
parentd3cc241f9078e894d27575f9025cb07c482185e7 (diff)
coverity#1415620 Unchecked return value (golden)
Change-Id: I5229a29d6f2017abe32121cbdedbba1017cc4a46
Diffstat (limited to 'sc')
-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;