Summary: | document that is not saved/reopened properly | ||
---|---|---|---|
Product: | kword | Reporter: | Pupeno <pupeno> |
Component: | general | Assignee: | Thomas Zander <zander> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | Example document |
Description
Pupeno
2003-11-10 01:40:19 UTC
Created attachment 3120 [details]
Example document
This is the document that demostrates the bug.
Subject: Re: document that is not saved/reopened properly The bug must be on saving, because in the .kwd file, there are indeed <UNDERLINE> tags for almost every paragraph. So I don't know how to debug this - the document 'looks fine', i.e. opening it shows what's in the XML. The question is, how to reproduce this bug? Can you reproduce it, and provide step-by-step instructions? Yes, it is simple: 1) Open the file. 2) Select something (some letters, some words). 3) Remove the underline. 3) Save the file. 4) Close the file. 5) Open the file again, everything is underlined. Thanks. Subject: koffice/kword CVS commit by faure: Save "no underline" explicitely if the paraglayout says "underline" but the user removed the underline (like we do for all other attributes) CCMAIL: 67735-done@bugs.kde.org M +29 -39 kwtextparag.cc 1.257 --- koffice/kword/kwtextparag.cc #1.256:1.257 @@ -179,6 +179,4 @@ QDomElement KWTextParag::saveFormat( QDo || curFormat->wordByWord() != refFormat->wordByWord()) { - if ( curFormat->underlineType()!= KoTextFormat::U_NONE ) - { elem = doc.createElement( "UNDERLINE" ); formatElem.appendChild( elem ); @@ -198,5 +196,4 @@ QDomElement KWTextParag::saveFormat( QDo elem.setAttribute( "wordbyword" , static_cast<int>(curFormat->wordByWord())); } - } if( !refFormat || curFormat->strikeOutType() != refFormat->strikeOutType() @@ -204,6 +201,4 @@ QDomElement KWTextParag::saveFormat( QDo || curFormat->wordByWord() != refFormat->wordByWord()) { - if ( curFormat->strikeOutType()!= KoTextFormat::S_NONE ) - { elem = doc.createElement( "STRIKEOUT" ); formatElem.appendChild( elem ); @@ -217,6 +212,4 @@ QDomElement KWTextParag::saveFormat( QDo elem.setAttribute( "styleline", strLineType ); elem.setAttribute( "wordbyword" , static_cast<int>(curFormat->wordByWord())); - - } } if( !refFormat || (curFormat->vAlign() != refFormat->vAlign()) @@ -262,10 +255,7 @@ QDomElement KWTextParag::saveFormat( QDo if( !refFormat || curFormat->offsetFromBaseLine() != refFormat->offsetFromBaseLine()) { - if ( curFormat->offsetFromBaseLine() != 0) - { elem = doc.createElement( "OFFSETFROMBASELINE" ); formatElem.appendChild( elem ); elem.setAttribute( "value", curFormat->offsetFromBaseLine() ); - } } if( !refFormat || curFormat->attributeFont() != refFormat->attributeFont()) |