r21569 by jghali - #14440, first path: fix most of the layout issue with Text on Path, still an offset issue remaining tho <Fahad>

scribus-commit scribus-commit at lists.scribus.net
Sun Dec 4 18:44:55 UTC 2016


Author: jghali
Date: Sun Dec  4 18:44:55 2016
New Revision: 21569

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21569
Log:
#14440, first path: fix most of the layout issue with Text on Path, still an offset issue remaining tho <Fahad>

Modified:
    trunk/Scribus/scribus/text/boxes.cpp

Modified: trunk/Scribus/scribus/text/boxes.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21569&path=/trunk/Scribus/scribus/text/boxes.cpp
==============================================================================
--- trunk/Scribus/scribus/text/boxes.cpp	(original)
+++ trunk/Scribus/scribus/text/boxes.cpp	Sun Dec  4 18:44:55 2016
@@ -291,15 +291,7 @@
 void LineBox::addBox(const Box* box)
 {
 	m_boxes.append(const_cast<Box*>(box));
-	m_firstChar = qMin(m_firstChar, box->firstChar());
-	m_lastChar = qMax(m_lastChar, box->lastChar());
-
-	const_cast<Box*>(box)->moveTo(m_naturalWidth, box->y());
-	m_naturalWidth += box->width();
-
-	m_naturalAscent = qMax(m_naturalAscent, box->naturalAsc());
-	m_naturalDecent = qMin(m_naturalDecent, box->naturalDecent());
-
+	update();
 }
 
 void LineBox::removeBox(int i)




More information about the scribus-commit mailing list