summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-11-12 17:20:58 +0100
committerAndras Timar <andras.timar@collabora.com>2014-11-23 14:32:23 +0100
commit4ecfd8a3695262de6385dfdc6d0abb9b63ec75ea (patch)
tree0fd465b86b6228541ff2808e5bb9d85cc22cbb1a /sw
parente203589a4af3059624cb1e64a267b05c764b2fc9 (diff)
fdo#80328: sw: fix inverted conditional in AutoCaption dialog
(regression from af2d474ff9a91645043c1d4292891c313cceef5e) Change-Id: Ib22be881c82024e545752715bb9eeb2851a64f88 (cherry picked from commit 6e3c823f591365c94b22932f08f0884d372e083e) Reviewed-on: https://gerrit.libreoffice.org/12389 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/config/optload.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/config/optload.cxx b/sw/source/ui/config/optload.cxx
index af52de99b9d4..6f758f484028 100644
--- a/sw/source/ui/config/optload.cxx
+++ b/sw/source/ui/config/optload.cxx
@@ -589,9 +589,9 @@ void SwCaptionOptPage::Reset( const SfxItemSet& rSet)
const SvGlobalName &rOleId = aObjS[i].GetClassName();
OUString sClass;
if (rOleId == SvGlobalName(SO3_OUT_CLASSID))
- sClass = aObjS[i].GetHumanName();
- else
sClass = m_sOLE;
+ else
+ sClass = aObjS[i].GetHumanName();
// don't show product version
sClass = sClass.replaceFirst( sComplete, sWithoutVersion );
m_pCheckLB->InsertEntry( sClass );