sw/source/core/layout/paintfrm.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
New commits: commit aa279b32a8db69d00aa625714c3894f02ee9de26 Author: Zolnai Tamás <zolnaitamas2...@gmail.com> Date: Tue Aug 27 14:03:51 2013 +0200 Avoid painting of empty shadow Change-Id: Ie293ad397b8b3f6db7d79dc4ff03c18cf896dfa2 diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx index 9095a72..1797b88 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
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits