111,6 → 111,7 |
|
d->defaultStyle = ParagraphStyle(); |
d->defaultStyle.setParent( & doc->docParagraphStyles[0]); |
d->defaultStyle.charStyle().setParent( & doc->docParagraphStyles[0].charStyle()); |
|
for (ScText *it = d->first(); it != 0; it = d->next()) |
{ |
425,6 → 426,8 |
d->defaultStyle = style; |
if (!d->defaultStyle.parent()) |
d->defaultStyle.setParent( & doc->docParagraphStyles[0] ); |
if (!d->defaultStyle.charStyle().parent()) |
d->defaultStyle.charStyle().setParent( & doc->docParagraphStyles[0].charStyle() ); |
} |
|
|
510,6 → 513,9 |
if (!d->at(i)->parstyle->parent()) { |
d->at(i)->parstyle->setParent( & d->defaultStyle ); |
} |
if (!d->at(i)->parstyle->charStyle().parent()) { |
d->at(i)->parstyle->charStyle().setParent( & d->defaultStyle.charStyle() ); |
} |
} |
else { |
// not happy about this but inserting a new PARSEP makes more trouble |
540,6 → 546,9 |
if (!d->at(i)->parstyle->parent()) { |
d->at(i)->parstyle->setParent( & d->defaultStyle ); |
} |
if (!d->at(i)->parstyle->charStyle().parent()) { |
d->at(i)->parstyle->charStyle().setParent( & d->defaultStyle.charStyle() ); |
} |
} |
else { |
// not happy about this but inserting a new PARSEP makes more trouble |