r14383 by jghali - #6374: Scribus version 1.2.2 file fails to open and hangs scribus

scribus-commit scribus-commit at lists.scribus.net
Tue Dec 8 00:10:23 CET 2009


Revision: 14383
Author: jghali
Date: 2009-12-07T12:37:41.283764Z
Commit message: #6374: Scribus version 1.2.2 file fails to open and hangs scribus 

Changeset: 
M  /branches/Version135/Scribus/scribus/pageitem_textframe.cpp

Diffs:
Index: scribus/pageitem_textframe.cpp
===================================================================
--- scribus/pageitem_textframe.cpp	(revision 14382)
+++ scribus/pageitem_textframe.cpp	(revision 14383)
@@ -901,6 +901,11 @@
 	{
 		// determine layout area
 		QRegion cl = availableRegion(QRegion(pf2.map(Clip)));
+		if (cl.isEmpty())
+		{
+			MaxChars = firstInFrame();
+			goto NoRoom;
+		}
 		
 		if (imageFlippedH())
 		{




More information about the scribus-commit mailing list