Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 9593 → Rev 9594

/branches/Version13x/Scribus/scribus/text/storytext.cpp
314,6 → 314,7
ScText clone = (length() == 0 ? ScText() :
pos < length() ? *(d->at(pos)) : *(d->at(length()-1)));
clone.setEffects(ScStyle_Default);
for (uint i = 0; i < txt.length(); ++i) {
ScText * item = new ScText(clone);
/branches/Version13x/Scribus/scribus/plugins/fileloader/scribus134format/scribus134format.cpp
1758,7 → 1758,7
if (newStyle != last->Style) // || (newStyle.effects() ^ last->Style.effects()) == ScStyle_HyphenationPossible)
{ // FIXME StyleFlag operator== ignores hyphen flag
// qDebug(QString("new style at %1: %2 -> %3").arg(pos).arg(last->Style.asString()).arg(newStyle.asString()));
obj->itemText.applyCharStyle(last->StyleStart, pos-last->StyleStart, last->Style);
obj->itemText.setCharStyle(last->StyleStart, pos-last->StyleStart, last->Style);
last->Style = newStyle;
last->StyleStart = pos;
}
1773,7 → 1773,7
obj->itemText.applyStyle(pos, pstyle);
}
}
obj->itemText.applyCharStyle(last->StyleStart, obj->itemText.length()-last->StyleStart, last->Style);
obj->itemText.setCharStyle(last->StyleStart, obj->itemText.length()-last->StyleStart, last->Style);
ParagraphStyle pstyle;
if (last->ParaStyle >= 0) {
pstyle.setParent( doc->paragraphStyles()[last->ParaStyle].name());