summaryrefslogtreecommitdiff
path: root/editeng/source/outliner
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-03-02 11:56:09 +0200
committerTor Lillqvist <tml@iki.fi>2012-03-02 12:09:29 +0200
commit2c1868bb28878a00f2d97918bab88ba845d1f5cd (patch)
tree8a86374b8ccfe0edded2b0e1f8220b10cec1b99b /editeng/source/outliner
parent40a5db084d3ef5074225e1cb54186bdac355223c (diff)
WaE: use of logical '&&' with constant operand
Surely a bit test is what is intended here.
Diffstat (limited to 'editeng/source/outliner')
-rw-r--r--editeng/source/outliner/outleeng.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/outliner/outleeng.cxx b/editeng/source/outliner/outleeng.cxx
index 6f80756c6e9e..b42802b37c3c 100644
--- a/editeng/source/outliner/outleeng.cxx
+++ b/editeng/source/outliner/outleeng.cxx
@@ -56,7 +56,7 @@ OutlinerEditEng::~OutlinerEditEng()
void OutlinerEditEng::PaintingFirstLine( sal_uInt16 nPara, const Point& rStartPos, long nBaseLineY, const Point& rOrigin, short nOrientation, OutputDevice* pOutDev )
{
- if( GetControlWord() && EE_CNTRL_OUTLINER )
+ if( GetControlWord() & EE_CNTRL_OUTLINER )
{
PaintFirstLineInfo aInfo( nPara, rStartPos, nBaseLineY, rOrigin, nOrientation, pOutDev );
pOwner->maPaintFirstLineHdl.Call( &aInfo );