r14680 by jghali - #8793: crash when doc contains hyphenated text frame in master page

scribus-commit scribus-commit at lists.scribus.net
Wed Feb 10 22:50:34 CET 2010


Revision: 14680
Author: jghali
Date: 2010-02-10T21:41:53.633353Z
Commit message: #8793: crash when doc contains hyphenated text frame in master page

Changeset: 
M  /trunk/Scribus/scribus/sctextstruct.h

Diffs:
Index: scribus/sctextstruct.h
===================================================================
--- scribus/sctextstruct.h	(revision 14679)
+++ scribus/sctextstruct.h	(revision 14680)
@@ -139,6 +139,15 @@
 		PtransX(other.PtransX), PtransY(other.PtransY), PRot(other.PRot), PDx(other.PDx), 
 		embedded(other.embedded), ch(other.ch)
 	{
+		glyph.more = NULL;
+		GlyphLayout *layout = &glyph;
+		const GlyphLayout *otherLayout = &other.glyph;
+		while (otherLayout->more)
+		{
+			layout->more = new GlyphLayout(*otherLayout->more);
+			layout       = layout->more;
+			otherLayout  = otherLayout->more;
+		}
 		if (other.parstyle)
 			parstyle = new ParagraphStyle(*other.parstyle);
 	}




More information about the scribus-commit mailing list