summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-06-21 21:21:49 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-06-22 09:50:43 +0100
commit9e921023eecbbee3316a5dac3469d17d4d0b658f (patch)
tree1dbc1df43f55c4faaa170cb168c4cd81dc8604e9
parent03e83de83bcc640cf359fe7997edcdadb5067b36 (diff)
DBG_ASSERT->SAL_WARN_IF didn't reverse condition
Change-Id: Iea3d1870df6422422a04e6027711ffa8ec65924a
-rw-r--r--vcl/source/edit/texteng.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx
index 675d2dfb1ccb..eaba9167c0a5 100644
--- a/vcl/source/edit/texteng.cxx
+++ b/vcl/source/edit/texteng.cxx
@@ -1915,7 +1915,7 @@ void TextEngine::ImpPaint( OutputDevice* pOutDev, const Point& rStartPos, Rectan
pSelStart = !bInvers ? &pSelection->GetStart() : &pSelection->GetEnd();
pSelEnd = bInvers ? &pSelection->GetStart() : &pSelection->GetEnd();
}
- SAL_WARN_IF( !pPaintRange || ( pPaintRange->GetStart() < pPaintRange->GetEnd() ), "vcl", "ImpPaint: Paint-Range?!" );
+ SAL_WARN_IF( pPaintRange && !(pPaintRange->GetStart() < pPaintRange->GetEnd()), "vcl", "ImpPaint: Paint-Range?!" );
const StyleSettings& rStyleSettings = pOutDev->GetSettings().GetStyleSettings();