summaryrefslogtreecommitdiffstats
path: root/src/style.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2010-07-18 09:12:32 +0000
committerJon A. Cruz <jon@joncruz.org>2010-07-18 09:12:32 +0000
commit463ed7ef1dcec505209b51b42dd0e9f4f734938a (patch)
tree4ff6b4a5c1aa815507f941aaef2633a0a6ba541d /src/style.cpp
parentCorrect default for save-as location. Fixes bug #561375. (diff)
downloadinkscape-463ed7ef1dcec505209b51b42dd0e9f4f734938a.tar.gz
inkscape-463ed7ef1dcec505209b51b42dd0e9f4f734938a.zip
Follow-up to complete fix for gradient stops and icc.
(bzr r9606.1.12)
Diffstat (limited to 'src/style.cpp')
-rw-r--r--src/style.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/style.cpp b/src/style.cpp
index 380decc48..a4094621f 100644
--- a/src/style.cpp
+++ b/src/style.cpp
@@ -1,5 +1,3 @@
-#define __SP_STYLE_C__
-
/** @file
* @brief SVG stylesheets implementation.
*/
@@ -487,11 +485,11 @@ sp_style_new_from_object(SPObject *object)
g_return_val_if_fail(object != NULL, NULL);
g_return_val_if_fail(SP_IS_OBJECT(object), NULL);
- SPStyle *style = sp_style_new(SP_OBJECT_DOCUMENT(object));
+ SPStyle *style = sp_style_new( object->document );
style->object = object;
style->release_connection = object->connectRelease(sigc::bind<1>(sigc::ptr_fun(&sp_style_object_release), style));
- if (object && SP_OBJECT_IS_CLONED(object)) {
+ if (object && object->cloned) {
style->cloned = true;
}
@@ -573,7 +571,7 @@ sp_style_read(SPStyle *style, SPObject *object, Inkscape::XML::Node *repr)
sp_style_clear(style);
- if (object && SP_OBJECT_IS_CLONED(object)) {
+ if (object && object->cloned) {
style->cloned = true;
}
@@ -4031,6 +4029,7 @@ SPIPaint::SPIPaint() :
noneSet(0),
value()
{
+ value.color.set( 0 );
value.href = 0;
}