r16094 by jghali - fix potential crash

scribus-commit scribus-commit at lists.scribus.net
Wed Dec 15 15:23:14 CET 2010


Author: jghali
Date: Wed Dec 15 14:23:14 2010
New Revision: 16094

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=16094
Log:
fix potential crash

Modified:
    branches/ScribusOIF/scribus/text/textlayout.cpp

Modified: branches/ScribusOIF/scribus/text/textlayout.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=16094&path=/branches/ScribusOIF/scribus/text/textlayout.cpp
==============================================================================
--- branches/ScribusOIF/scribus/text/textlayout.cpp (original)
+++ branches/ScribusOIF/scribus/text/textlayout.cpp Wed Dec 15 14:23:14 2010
@@ -415,7 +415,7 @@
 				m_story->glyphStore()->markCluster(psItem, parSep, m_story->glyphStore()->itemGlyphStart(psItem));
 				m_layout->addBox(psGlyph);
 			}
-			qDebug()<<"Add Par Box:"<<result.box->toString();
+			qDebug()<<"Add Par Box:"<< (result.box ? result.box->toString() : "no box");
 			m_lastInFrame = result.lastPos;
 			// seek next paragraph, if any
 			++parIdx;




More information about the scribus-commit mailing list