diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-06-30 12:19:23 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-07-01 13:30:12 +0200 |
commit | 3d399b0e45720354fc64dc3d121ee486e01eff89 (patch) | |
tree | 76bec258fe81f59a1898ee9402b7d744c630c8ee /svx | |
parent | 9e9e9e4748695a626609b380d8cc4a191c54d83a (diff) |
getSvxBrushItemFromSourceSet: let XFILL_NONE result in COL_AUTO
I'm not completely sure about this, but without this, automatic color is
translated back as rgba(114, 159, 207, 255), which sounds even worse.
Change-Id: I9f96f26b3797d9e289119a4795d2535b6d72262e
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/unodraw/unobrushitemhelper.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/svx/source/unodraw/unobrushitemhelper.cxx b/svx/source/unodraw/unobrushitemhelper.cxx index 5ce03ac02c40..c95c200d12b0 100644 --- a/svx/source/unodraw/unobrushitemhelper.cxx +++ b/svx/source/unodraw/unobrushitemhelper.cxx @@ -191,10 +191,7 @@ SvxBrushItem getSvxBrushItemFromSourceSet(const SfxItemSet& rSourceSet, sal_uInt if(!pXFillStyleItem || XFILL_NONE == pXFillStyleItem->GetValue()) { - // no fill, still need to rescue the evtl. set RGB color, but use as transparent color (we have XFILL_NONE) - Color aFillColor(static_cast< const XFillColorItem& >(rSourceSet.Get(XATTR_FILLCOLOR, bSearchInParents)).GetColorValue()); - aFillColor.SetTransparency(0xff); - + Color aFillColor(COL_AUTO); return SvxBrushItem(aFillColor, nBackgroundID); } |