r14555 by fschmid - Partly fixed Bug-Nr. 8446, disable the outline flag for the shadow text (this fix is a hack)

scribus-commit scribus-commit at lists.scribus.net
Thu Jan 21 00:00:20 CET 2010


Revision: 14555
Author: fschmid
Date: 2010-01-20T22:58:46.580384Z
Commit message: Partly fixed Bug-Nr. 8446, disable the outline flag for the shadow text (this fix is a hack)

Changeset: 
M  /trunk/Scribus/scribus/pdflib_core.cpp

Diffs:
Index: scribus/pdflib_core.cpp
===================================================================
--- scribus/pdflib_core.cpp	(revision 14554)
+++ scribus/pdflib_core.cpp	(revision 14555)
@@ -4719,6 +4719,7 @@
 							{
 								ScText hl3;
 								static_cast<CharStyle&>(hl3) = static_cast<const CharStyle&>(hl2);
+								hl3.setEffects(hl3.effects() & (~(ScStyle_Outline)));
 								hl3.ch = hl2.ch;
 								hl3.glyph.glyph = hl2.glyph.glyph;
 								hl3.setFillColor(hl2.strokeColor());
@@ -4754,6 +4755,7 @@
 						gl2 = gl2->more;
 					}
 					static_cast<CharStyle&>(hl2) = static_cast<const CharStyle&>(*hl);
+					hl2.setEffects(hl2.effects() & (~(ScStyle_Outline)));
 					hl2.setFillColor(hl->strokeColor());
 					hl2.setFillShade(hl->strokeShade());
 					hl2.glyph.xadvance = hl->glyph.xadvance;
@@ -4815,6 +4817,7 @@
 						{
 							ScText hl3;
 							static_cast<CharStyle&>(hl3) = static_cast<const CharStyle&>(hl2);
+							hl3.setEffects(hl3.effects() & (~(ScStyle_Outline)));
 							hl3.ch = hl2.ch;
 							hl3.glyph.glyph = hl2.glyph.glyph;
 							hl3.setFillColor(hl2.strokeColor());
@@ -4843,6 +4846,7 @@
 				hl2.ch = ch;
 				hl2.glyph.glyph = hl->glyph.glyph;
 				static_cast<CharStyle&>(hl2) = static_cast<const CharStyle&>(*hl);
+				hl2.setEffects(hl2.effects() & (~(ScStyle_Outline)));
 				hl2.setFillColor(hl->strokeColor());
 				hl2.setFillShade(hl->strokeShade());
 				hl2.glyph.yoffset = hl->glyph.yoffset - (chstyle.fontSize() * chstyle.shadowYOffset() / 10000.0);




More information about the scribus-commit mailing list