diff options
author | Zolnai Tamás <zolnaitamas2000@gmail.com> | 2013-08-27 14:03:51 +0200 |
---|---|---|
committer | Zolnai Tamás <zolnaitamas2000@gmail.com> | 2013-08-27 14:07:56 +0200 |
commit | aa279b32a8db69d00aa625714c3894f02ee9de26 (patch) | |
tree | c06379ef17c22d4938279b3d8c1da799a1b351a7 /sw | |
parent | fdo#67313: Use "lo" suffix for private URE libs (diff) | |
download | core-aa279b32a8db69d00aa625714c3894f02ee9de26.tar.gz core-aa279b32a8db69d00aa625714c3894f02ee9de26.zip |
Avoid painting of empty shadow
Change-Id: Ie293ad397b8b3f6db7d79dc4ff03c18cf896dfa2
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/paintfrm.cxx | 7 |
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 |