r15720 by fschmid - Fixed Bug #9459: "No colour when pasting an object with custom colours via CTRL+C and CTRL+V"

scribus-commit scribus-commit at lists.scribus.net
Mon Nov 1 21:55:35 CET 2010


Author: fschmid
Date: Mon Nov  1 20:55:35 2010
New Revision: 15720

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=15720
Log:
Fixed Bug #9459: "No colour when pasting an object with custom colours via CTRL+C and CTRL+V"

Modified:
    trunk/Scribus/scribus/serializer.cpp

Modified: trunk/Scribus/scribus/serializer.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15720&path=/trunk/Scribus/scribus/serializer.cpp
==============================================================================
--- trunk/Scribus/scribus/serializer.cpp (original)
+++ trunk/Scribus/scribus/serializer.cpp Mon Nov  1 20:55:35 2010
@@ -144,14 +144,12 @@
 	addRule("/SCRIBUSFRAGMENT", Factory<Collection>());
 	addRule("/SCRIBUSFRAGMENT", Store<Collection>("<collection>"));
 
-	addRule("/SCRIBUSFRAGMENT/colors", MergeColors());
-	
-	addRule("/SCRIBUSFRAGMENT/colors/color", Factory<ScColor>());
-	addRule("/SCRIBUSFRAGMENT/colors/color", SetAttribute<ScColor, QString>( &ScColor::setNamedColor, "RGB" ));
-	addRule("/SCRIBUSFRAGMENT/colors/color", SetAttribute<ScColor, QString>( &ScColor::setNamedColor, "CMYK" ));
-	addRule("/SCRIBUSFRAGMENT/colors/color", SetAttributeWithConversion<ScColor, bool>( &ScColor::setSpotColor, "Spot", &parseBool ));
-	addRule("/SCRIBUSFRAGMENT/colors/color", SetAttributeWithConversion<ScColor, bool>( &ScColor::setRegistrationColor, "Register", &parseBool ));
-	addRule("/SCRIBUSFRAGMENT/colors/color", CollectColor());
+	addRule("/SCRIBUSFRAGMENT/color", Factory<ScColor>());
+	addRule("/SCRIBUSFRAGMENT/color", SetAttribute<ScColor, QString>( &ScColor::setNamedColor, "RGB" ));
+	addRule("/SCRIBUSFRAGMENT/color", SetAttribute<ScColor, QString>( &ScColor::setNamedColor, "CMYK" ));
+	addRule("/SCRIBUSFRAGMENT/color", SetAttributeWithConversion<ScColor, bool>( &ScColor::setSpotColor, "Spot", &parseBool ));
+	addRule("/SCRIBUSFRAGMENT/color", SetAttributeWithConversion<ScColor, bool>( &ScColor::setRegistrationColor, "Register", &parseBool ));
+	addRule("/SCRIBUSFRAGMENT/color", CollectColor());
 
 	CharStyle::desaxeRules("/SCRIBUSFRAGMENT/", *this);
 	addRule("/SCRIBUSFRAGMENT/charstyle", SetterP<Collection, CharStyle>( & Collection::collectCharStyle ));




More information about the scribus-commit mailing list