r22051 by jghali - #14844: Scribus crashes when trying to make text flow around object (image frame)
scribus-commit
scribus-commit at lists.scribus.net
Sat Jun 3 23:18:42 UTC 2017
Author: jghali
Date: Sat Jun 3 23:18:42 2017
New Revision: 22051
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22051
Log:
#14844: Scribus crashes when trying to make text flow around object (image frame)
Modified:
trunk/Scribus/scribus/pageitem_textframe.cpp
Modified: trunk/Scribus/scribus/pageitem_textframe.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22051&path=/trunk/Scribus/scribus/pageitem_textframe.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem_textframe.cpp (original)
+++ trunk/Scribus/scribus/pageitem_textframe.cpp Sat Jun 3 23:18:42 2017
@@ -2299,7 +2299,7 @@
//force line end at previouse glyph
i--;
currentIndex = i - current.lineData.firstCluster;
- a = current.glyphs[currentIndex].firstChar();
+ a = (i >= 0) ? glyphClusters.at(i).firstChar() : (a - 1);
current.mustLineEnd = current.lineData.x;
}
// qDebug() << "breakline forced @" << i;
More information about the scribus-commit
mailing list