summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2020-02-05 16:27:53 +0100
committerMichael Stahl <michael.stahl@cib.de>2020-02-06 13:00:34 +0100
commitc0b7fe8281319146c4a2e36e203cfd65633ce3bd (patch)
tree63ca793564afd739cfbf3c1167fb25d7f135ea26 /sw/source
parent49fd7425da1ffc9d745758ccaee4a6ae78b0d569 (diff)
tdf#45589 sw: don't paint field shading for bookmarks
Maybe it looks better without. Change-Id: Id603fbef361574cafbe2ec9f625ac54fea27a0f6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88039 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/text/inftxt.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/sw/source/core/text/inftxt.cxx b/sw/source/core/text/inftxt.cxx
index e4f42d4a8ea7..cd6781ca4b87 100644
--- a/sw/source/core/text/inftxt.cxx
+++ b/sw/source/core/text/inftxt.cxx
@@ -1376,12 +1376,7 @@ void SwTextPaintInfo::DrawViewOpt( const SwLinePortion &rPor,
}
break;
case PortionType::Bookmark:
- if (!GetOpt().IsPagePreview()
- && !GetOpt().IsReadonly()
- && GetOpt().IsShowBookmarks())
- {
- bDraw = true;
- }
+ // no shading
break;
case PortionType::InputField:
// input field shading also in read-only mode