vcl/source/edit/texteng.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9e921023eecbbee3316a5dac3469d17d4d0b658f
Author: Caolán McNamara <caol...@redhat.com>
Date:   Tue Jun 21 21:21:49 2016 +0100

    DBG_ASSERT->SAL_WARN_IF didn't reverse condition
    
    Change-Id: Iea3d1870df6422422a04e6027711ffa8ec65924a

diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx
index 675d2df..eaba916 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();
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to