diff options
Diffstat (limited to 'sw/source/core/fields')
-rw-r--r-- | sw/source/core/fields/postithelper.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sw/source/core/fields/postithelper.cxx b/sw/source/core/fields/postithelper.cxx index d02bbec26c6a..8b276678a3d7 100644 --- a/sw/source/core/fields/postithelper.cxx +++ b/sw/source/core/fields/postithelper.cxx @@ -31,6 +31,7 @@ #include <txtfrm.hxx> #include <tabfrm.hxx> #include <IDocumentRedlineAccess.hxx> +#include <IDocumentFieldsAccess.hxx> #include <redline.hxx> #include <scriptinfo.hxx> #include <editeng/charhiddenitem.hxx> @@ -142,9 +143,12 @@ SwPosition SwAnnotationItem::GetAnchorPosition() const return aPos; } -bool SwAnnotationItem::UseElement() +bool SwAnnotationItem::UseElement(SwRootFrame const& rLayout, + IDocumentRedlineAccess const& rIDRA) { - return mrFormatField.IsFieldInDoc(); + return mrFormatField.IsFieldInDoc() + && (!rLayout.IsHideRedlines() + || !sw::IsFieldDeletedInModel(rIDRA, *mrFormatField.GetTextField())); } VclPtr<sw::annotation::SwAnnotationWin> SwAnnotationItem::GetSidebarWindow( |