diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-07-23 19:33:36 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-07-23 19:33:36 +0100 |
commit | 29bb9775ce5443d5f4929471fa2cd85d8e6d6c45 (patch) | |
tree | 710de93a1119792c7f36e93c33c8c8ac913683fb /sc | |
parent | d3cc241f9078e894d27575f9025cb07c482185e7 (diff) |
coverity#1415620 Unchecked return value (golden)
Change-Id: I5229a29d6f2017abe32121cbdedbba1017cc4a46
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/attrib.cxx | 5 |
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; |