summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-03-02 17:35:01 +0200
committerTor Lillqvist <tml@iki.fi>2012-03-02 18:43:41 +0200
commit08773910b162ada57ad10310f294a8b68ddcd1b5 (patch)
tree795602c81de71287bc9630bf5ac325bedcd5adca /svx
parent4de374a8b092a988a9022887a3b586336658a5fb (diff)
WaE: use of logical '&&' with constant operand
Presumably a bitwise '&' is intended, i.e. a normal flag bit test.
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/hdft.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/dialog/hdft.cxx b/svx/source/dialog/hdft.cxx
index 287a34ae06e0..21bffa77910a 100644
--- a/svx/source/dialog/hdft.cxx
+++ b/svx/source/dialog/hdft.cxx
@@ -431,7 +431,7 @@ void SvxHFPage::Reset( const SfxItemSet& rSet )
{
sal_uInt16 nHtmlMode = 0;
nHtmlMode = ((SfxUInt16Item*)pItem)->GetValue();
- if(nHtmlMode && HTMLMODE_ON)
+ if(nHtmlMode & HTMLMODE_ON)
{
aCntSharedBox.Hide();
aBackgroundBtn.Hide();