summaryrefslogtreecommitdiff
path: root/svtools/source/control/ruler.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-10 17:08:30 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-10 17:11:52 +0100
commit680a5290a0c7c1caf85641251a40664247e83129 (patch)
tree27147ae47c7a48bf485b3fd2ad0d5a5af1269ef2 /svtools/source/control/ruler.cxx
parent99ffbb9dc1c06704f3e259ee9765fbeb408b1629 (diff)
Use proper bool operations
Change-Id: I758a84205044e51f1af6b18f145e2033f32921e1
Diffstat (limited to 'svtools/source/control/ruler.cxx')
-rw-r--r--svtools/source/control/ruler.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index 6b74fdcde375..d4a72f940511 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -1535,7 +1535,7 @@ sal_Bool Ruler::ImplHitTest( const Point& rPos, RulerSelection* pHitTest,
nStyle &= RULER_INDENT_STYLE;
n1 = mpData->pIndents[i-1].nPos;
- if ( (nStyle == RULER_INDENT_BOTTOM) ^ (!bIsHori) )
+ if ( (nStyle == RULER_INDENT_BOTTOM) != !bIsHori )
{
aRect.Left() = n1-nIndentWidth2;
aRect.Right() = n1+nIndentWidth2;