Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 4097 → Rev 4096

/branches/Version13x/Scribus/scribus/scribusXml.cpp
576,7 → 576,6
break;
}
}
//Compare the attributes of the pasted styles vs existing ones
if ((vg->LineSpa == docParagraphStyles[xx].LineSpa) &&
(vg->LineSpaMode == docParagraphStyles[xx].LineSpaMode) &&
(vg->Indent == docParagraphStyles[xx].Indent) &&
2292,11 → 2291,7
fo.setAttribute("NAME",UsedStyles[actSt].Vname);
fo.setAttribute("ALIGN",UsedStyles[actSt].textAlignment);
fo.setAttribute("LINESPMode",UsedStyles[actSt].LineSpaMode);
//CB #2738:
//UsedStyles[actSt].LineSpa is something like this is using automatic from the font:
//10.34912109375000000000. Default attribute value is then 10.3491 which then becomes //10.34909999999999996589 and then does not compare. This fixes, should we change our
//default precision?
fo.setAttribute("LINESP",QString::number(UsedStyles[actSt].LineSpa,'f',13));
fo.setAttribute("LINESP",UsedStyles[actSt].LineSpa);
fo.setAttribute("INDENT",UsedStyles[actSt].Indent);
fo.setAttribute("FIRST",UsedStyles[actSt].First);
fo.setAttribute("VOR",UsedStyles[actSt].gapBefore);