r13935 by fschmid - Fixed Bug #8393: "Import problem of old scribus-documents"
scribus-commit
scribus-commit at lists.scribus.net
Fri Aug 28 14:10:38 CEST 2009
Revision: 13935
Author: fschmid
Date: 2009-08-28T12:08:57.200845Z
Commit message: Fixed Bug #8393: "Import problem of old scribus-documents"
Changeset:
M /trunk/Scribus/scribus/plugins/fileloader/scribus12format/scribus12format.cpp
M /trunk/Scribus/scribus/plugins/fileloader/scribus13format/scribus13format.cpp
Diffs:
Index: scribus/plugins/fileloader/scribus12format/scribus12format.cpp
===================================================================
--- scribus/plugins/fileloader/scribus12format/scribus12format.cpp (revision 13934)
+++ scribus/plugins/fileloader/scribus12format/scribus12format.cpp (revision 13935)
@@ -802,6 +802,8 @@
OB->Pcolor2 = obj->attribute("PCOLOR2");
OB->TxtFill = obj->attribute("TXTFILL", "Black");
}
+ if (OB->Pwidth == 0.0)
+ OB->Pcolor2 = CommonStrings::None;
OB->Shade = obj->attribute("SHADE").toInt();
OB->Shade2 = obj->attribute("SHADE2").toInt();
OB->FillRule = obj->attribute("fillRule", "1").toInt();
Index: scribus/plugins/fileloader/scribus13format/scribus13format.cpp
===================================================================
--- scribus/plugins/fileloader/scribus13format/scribus13format.cpp (revision 13934)
+++ scribus/plugins/fileloader/scribus13format/scribus13format.cpp (revision 13935)
@@ -2225,7 +2225,10 @@
currItem->setCornerRadius(ScCLocale::toDoubleC(obj->attribute("RADRECT"), 0.0));
currItem->ClipEdited = obj->attribute("CLIPEDIT", "0").toInt();
currItem->setFillColor(Pcolor);
- currItem->setLineColor(Pcolor2);
+ if (currItem->lineWidth() == 0.0)
+ currItem->setLineColor(CommonStrings::None);
+ else
+ currItem->setLineColor(Pcolor2);
currItem->setFillShade(Pshade);
currItem->setLineShade(Pshade2);
ParagraphStyle pstyle;
More information about the scribus-commit
mailing list