r17258 by fschmid - Applied Patch from Bug 10528: "wrong line spacing between paragraphs calculation after overflow"
scribus-commit
scribus-commit at lists.scribus.net
Sun Jan 29 09:59:24 UTC 2012
Author: fschmid
Date: Sun Jan 29 09:59:24 2012
New Revision: 17258
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17258
Log:
Applied Patch from Bug 10528: "wrong line spacing between paragraphs calculation after overflow"
Modified:
branches/Version14x/Scribus/scribus/pageitem_textframe.cpp
Modified: branches/Version14x/Scribus/scribus/pageitem_textframe.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17258&path=/branches/Version14x/Scribus/scribus/pageitem_textframe.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/pageitem_textframe.cpp (original)
+++ branches/Version14x/Scribus/scribus/pageitem_textframe.cpp Sun Jan 29 09:59:24 2012
@@ -1965,6 +1965,12 @@
double newXAdd = overflowWidth - style.rightMargin() + style.minGlyphExtension() * wide + hyphWidth;
if (current.isEndOfLine(newXAdd) || current.xPos + newXAdd >= current.colRight || realEnd >= current.mustLineEnd)
{
+ if (!current.afterOverflow)
+ {
+ current.addLine = true;
+ current.lastInRowLine = true;
+ }
+ //line must end before overflov
if (!current.addLine && !current.lastInRowLine)
{
if (current.afterOverflow)
More information about the scribus-commit
mailing list