summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorZolnai Tamás <zolnaitamas2000@gmail.com>2013-08-27 14:03:51 +0200
committerZolnai Tamás <zolnaitamas2000@gmail.com>2013-08-27 14:07:56 +0200
commitaa279b32a8db69d00aa625714c3894f02ee9de26 (patch)
treec06379ef17c22d4938279b3d8c1da799a1b351a7 /sw
parent644c33a857c46d540202189228f519946dc33833 (diff)
Avoid painting of empty shadow
Change-Id: Ie293ad397b8b3f6db7d79dc4ff03c18cf896dfa2
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/layout/paintfrm.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index 9095a7277c3b..1797b88bb61f 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -4877,8 +4877,11 @@ void PaintCharacterBorder(
0, &rFont.GetShadowColor(), rFont.GetShadowWidth(),
rFont.GetAbsShadowLocation(bVerticalLayout));
- lcl_PaintShadow( SwRect(aAlignedRect), aAlignedRect, aShadow,
- false, bTop, bBottom, bLeft, bRight);
+ if( aShadow.GetLocation() != SVX_SHADOW_NONE )
+ {
+ lcl_PaintShadow( SwRect(aAlignedRect), aAlignedRect, aShadow,
+ false, bTop, bBottom, bLeft, bRight);
+ }
}
// Init borders, after this initialization top, bottom, right and left means the