summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/tools/wmfemfhelper.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/drawinglayer/source/tools/wmfemfhelper.cxx b/drawinglayer/source/tools/wmfemfhelper.cxx
index 88755d2e9d2e..2b3ac3238c1d 100644
--- a/drawinglayer/source/tools/wmfemfhelper.cxx
+++ b/drawinglayer/source/tools/wmfemfhelper.cxx
@@ -2432,7 +2432,8 @@ namespace wmfemfhelper
{
/** CHECKED, WORKS WELL */
const MetaLineColorAction* pA = static_cast<const MetaLineColorAction*>(pAction);
- const bool bActive(pA->IsSetting());
+ // tdf#89901 do as OutDev does: COL_TRANSPARENT deacvtivates line draw
+ const bool bActive(pA->IsSetting() && COL_TRANSPARENT != pA->GetColor());
rPropertyHolders.Current().setLineColorActive(bActive);
if(bActive)
@@ -2444,7 +2445,8 @@ namespace wmfemfhelper
{
/** CHECKED, WORKS WELL */
const MetaFillColorAction* pA = static_cast<const MetaFillColorAction*>(pAction);
- const bool bActive(pA->IsSetting());
+ // tdf#89901 do as OutDev does: COL_TRANSPARENT deacvtivates polygon fill
+ const bool bActive(pA->IsSetting() && COL_TRANSPARENT != pA->GetColor());
rPropertyHolders.Current().setFillColorActive(bActive);
if(bActive)