Author: paveljanik
Date: Fri Jan 3 20:12:06 2014
New Revision: 1555241
URL: http://svn.apache.org/r1555241
Log:
WaE: Compare numerical values to 0, not NULL.
Modified:
openoffice/trunk/main/sw/source/ui/docvw/SidebarWin.cxx
Modified: openoffice/trunk/main/sw/source/ui/docvw/SidebarWin.cxx
URL:
http://svn.apache.org/viewvc/openoffice/trunk/main/sw/source/ui/docvw/SidebarWin.cxx?rev=1555241&r1=1555240&r2=1555241&view=diff
==============================================================================
--- openoffice/trunk/main/sw/source/ui/docvw/SidebarWin.cxx (original)
+++ openoffice/trunk/main/sw/source/ui/docvw/SidebarWin.cxx Fri Jan 3 20:12:06
2014
@@ -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;