UWVA#27155 Transparante contouren ook invisible maken. Voorkomt hopelijk dat ze via DWF-viewer zwart worden op de printer

svn path=/Slnkdwf/trunk/; revision=18564
This commit is contained in:
Jos Groot Lipman
2013-07-31 10:33:59 +00:00
parent 283afe654f
commit 7d1ee93fa4

View File

@@ -653,9 +653,15 @@ WT_Result CSLNKContourImpl::serialize(WT_File & file, BOOL solidOnly, BOOL forFi
// - poly2Map heeft namelijk een poly nodig
// - voor als we ruimte willen aanwijzen want de point-in werkt later op polygons
if (m_Color.rgba().m_rgb.a==0)
{ // Op zich redundant bij 100% transparant maar sommige
WT_Visibility(WD_False).serialize(file); // printerdrivers maken anders de polygon zwart
}
file.desired_rendition().color() = m_Color; // Set the color for the polygon
WT_Polygon my_poly( count(), points(), WD_False);
my_poly.serialize(file);
if (m_Color.rgba().m_rgb.a==0)
WT_Visibility(WD_True).serialize(file);
#if 0
WT_RGBA32 rgba[3];
WT_RGBA32 clr(this.m_Color.rgba());