summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2020-02-05 16:27:53 +0100
committerVasily Melenchuk <vasily.melenchuk@cib.de>2020-12-07 12:23:21 +0300
commita092b8d4812bfc33a782319fa30b61f5af76be98 (patch)
tree1cf405133937985b808b65ff04f05f2330d17ce7 /sw
parent2658cf474b0bd4a385f89bada1f80e4ed61854a6 (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')
-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 b0db81502d95..c79567a33c7b 100644
--- a/sw/source/core/text/inftxt.cxx
+++ b/sw/source/core/text/inftxt.cxx
@@ -1309,12 +1309,7 @@ void SwTextPaintInfo::DrawViewOpt( const SwLinePortion &rPor,
}
break;
case PortionType::Bookmark:
- if (!GetOpt().IsPagePreview()
- && !GetOpt().IsReadonly()
- && GetOpt().IsViewMetaChars())
- {
- bDraw = true;
- }
+ // no shading
break;
case PortionType::InputField:
// input field shading also in read-only mode