You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by or...@apache.org on 2014/03/26 14:52:38 UTC
svn commit: r1581840 -
/openoffice/trunk/main/sw/source/ui/docvw/SidebarWin.cxx
Author: orw
Date: Wed Mar 26 13:52:38 2014
New Revision: 1581840
URL: http://svn.apache.org/r1581840
Log:
124514: show/hide Overlay object to highlight annotated text range according the according view option which show/hides the annotations/comments
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=1581840&r1=1581839&r2=1581840&view=diff
==============================================================================
--- openoffice/trunk/main/sw/source/ui/docvw/SidebarWin.cxx (original)
+++ openoffice/trunk/main/sw/source/ui/docvw/SidebarWin.cxx Wed Mar 26 13:52:38 2014
@@ -579,7 +579,8 @@ void SwSidebarWin::SetPosAndSize()
}
// text range overlay
- if ( mrSidebarItem.maLayoutInfo.mnStartNodeIdx != 0
+ if ( mrMgr.ShowNotes()
+ && mrSidebarItem.maLayoutInfo.mnStartNodeIdx != 0
&& mrSidebarItem.maLayoutInfo.mnStartContent != STRING_NOTFOUND )
{
std::vector< basegfx::B2DRange > aAnnotationTextRanges;