[Libreoffice-commits] core.git: Branch 'aoo/trunk' - sw/source

Pavel Janík paveljanik at apache.org
Fri Jan 3 14:08:34 PST 2014


 sw/source/ui/docvw/SidebarWin.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5755b4afdc62960831420a20782386fbc287460b
Author: Pavel Janík <paveljanik at apache.org>
Date:   Fri Jan 3 20:12:06 2014 +0000

    WaE: Compare numerical values to 0, not NULL.

diff --git a/sw/source/ui/docvw/SidebarWin.cxx b/sw/source/ui/docvw/SidebarWin.cxx
index 68e5c3c..2967698 100644
--- a/sw/source/ui/docvw/SidebarWin.cxx
+++ b/sw/source/ui/docvw/SidebarWin.cxx
@@ -579,7 +579,7 @@ void SwSidebarWin::SetPosAndSize()
     }
 
     // text range overlay
-    if ( mrSidebarItem.maLayoutInfo.mnStartNodeIdx != NULL
+    if ( mrSidebarItem.maLayoutInfo.mnStartNodeIdx != 0
          && mrSidebarItem.maLayoutInfo.mnStartContent != STRING_NOTFOUND )
     {
         std::vector< basegfx::B2DRange > aAnnotationTextRanges;


More information about the Libreoffice-commits mailing list