diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-10-19 16:33:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-10-21 15:22:29 +0200 |
commit | 96762d29bc796bebdd513352aabcad3b216f847d (patch) | |
tree | aeeb67261399a402c469e26f65b69f4f6e9e329f /xmloff | |
parent | 6c0fe24140b11874a519001d58a0c503840b3a94 (diff) |
pvs-studio: A part of conditional expression is always true: bDisplayOK
Change-Id: If01f2d3b02219194cbeaeffbb0fd8242320432a8
Reviewed-on: https://gerrit.libreoffice.org/62056
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/txtvfldi.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/text/txtvfldi.cxx b/xmloff/source/text/txtvfldi.cxx index 52d61d70276d..9d8b45632c6e 100644 --- a/xmloff/source/text/txtvfldi.cxx +++ b/xmloff/source/text/txtvfldi.cxx @@ -205,7 +205,7 @@ void XMLVarFieldImportContext::PrepareField( if (bSetVisible && bDisplayOK) { - bool bTmp = ! (bDisplayNone && bDisplayOK); + bool bTmp = !bDisplayNone; xPropertySet->setPropertyValue(sAPI_is_visible, Any(bTmp)); } |