summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-04-14 14:30:29 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-14 17:32:16 +0200
commit1e752272d9448694778a251c09137e4fbd2c83dc (patch)
treed6dd04a1c3165e60129cd2fa861ad6db258ce33d /editeng
parent21e3cd642b8b478416c498f66ffc4ff22bfa5fc2 (diff)
-Werror=logical-op (GCC 6)
"logical ‘or’ of collectively exhaustive tests is always true"; apparently a typo in 63114e6d863de32e2d93f0da54caca928916d9c2 "Create SvxFieldData instance directly from the UNO textfield object" Change-Id: I9e504ccb5ebad5a42a8c07d7f16d7c316dd82cf1
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/items/flditem.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/items/flditem.cxx b/editeng/source/items/flditem.cxx
index a49f7c4489a7..121dcf8625b0 100644
--- a/editeng/source/items/flditem.cxx
+++ b/editeng/source/items/flditem.cxx
@@ -185,7 +185,7 @@ SvxFieldData* SvxFieldData::Create(const uno::Reference<text::XTextContent>& xTe
{
pData->SetFormat(SVXAUTHORFORMAT_SHORTNAME);
}
- else if (nFmt >= SVXAUTHORFORMAT_FULLNAME || nFmt <= SVXAUTHORFORMAT_SHORTNAME)
+ else if (nFmt >= SVXAUTHORFORMAT_FULLNAME && nFmt <= SVXAUTHORFORMAT_SHORTNAME)
{
pData->SetFormat(static_cast<SvxAuthorFormat>(nFmt));
}