summaryrefslogtreecommitdiffstats
path: root/src/sp-flowregion.cpp
diff options
context:
space:
mode:
authorjtx <javier.arraiza@marker.es>2013-03-19 16:56:26 +0000
committerjtx <javier.arraiza@marker.es>2013-03-19 16:56:26 +0000
commitfc95705f9d5761fe111a445c51afc505d08738a7 (patch)
tree65fed75305c0582b165af2c327fca8246829c836 /src/sp-flowregion.cpp
parentMerge from trunk (diff)
downloadinkscape-fc95705f9d5761fe111a445c51afc505d08738a7.tar.gz
inkscape-fc95705f9d5761fe111a445c51afc505d08738a7.zip
Fixing regression
(bzr r11950.1.61)
Diffstat (limited to 'src/sp-flowregion.cpp')
-rw-r--r--src/sp-flowregion.cpp39
1 files changed, 18 insertions, 21 deletions
diff --git a/src/sp-flowregion.cpp b/src/sp-flowregion.cpp
index a8de68f9b..627907cef 100644
--- a/src/sp-flowregion.cpp
+++ b/src/sp-flowregion.cpp
@@ -86,15 +86,13 @@ sp_flowregion_dispose(GObject *object)
group->computed.~vector<Shape*>();
}
-static void sp_flowregion_child_added(SPObject *object, Inkscape::XML::Node *child, Inkscape::XML::Node *ref)
+static void
+sp_flowregion_child_added(SPObject *object,
+ Inkscape::XML::Node *child,
+ Inkscape::XML::Node *ref)
{
- SP_ITEM(object);
-
- if (((SPObjectClass *) (sp_flowregion_parent_class))->child_added) {
- (* ((SPObjectClass *) (sp_flowregion_parent_class))->child_added) (object, child, ref);
- }
-
- object->requestModified(SP_OBJECT_MODIFIED_FLAG);
+ SP_OBJECT_CLASS (sp_flowregion_parent_class)->child_added (object, child, ref);
+ object->requestModified(SP_OBJECT_MODIFIED_FLAG);
}
/* fixme: hide (Lauris) */
@@ -164,10 +162,10 @@ void SPFlowregion::UpdateComputed(void)
}
}
-static void sp_flowregion_modified(SPObject *object, guint flags)
+static void
+sp_flowregion_modified(SPObject *object,
+ guint flags)
{
- SP_FLOWREGION(object); // ensure it is the proper type.
-
if (flags & SP_OBJECT_MODIFIED_FLAG) {
flags |= SP_OBJECT_PARENT_MODIFIED_FLAG;
}
@@ -278,15 +276,14 @@ sp_flowregionexclude_dispose(GObject *object)
}
}
-static void sp_flowregionexclude_child_added(SPObject *object, Inkscape::XML::Node *child, Inkscape::XML::Node *ref)
+static void
+sp_flowregionexclude_child_added(SPObject *object,
+ Inkscape::XML::Node *child,
+ Inkscape::XML::Node *ref)
{
- SP_ITEM(object);
-
- if (((SPObjectClass *) (sp_flowregionexclude_parent_class))->child_added) {
- (* ((SPObjectClass *) (sp_flowregionexclude_parent_class))->child_added) (object, child, ref);
- }
+ SP_OBJECT_CLASS (sp_flowregionexclude_parent_class)->child_added (object, child, ref);
- object->requestModified(SP_OBJECT_MODIFIED_FLAG);
+ object->requestModified(SP_OBJECT_MODIFIED_FLAG);
}
/* fixme: hide (Lauris) */
@@ -354,10 +351,10 @@ void SPFlowregionExclude::UpdateComputed(void)
}
}
-static void sp_flowregionexclude_modified(SPObject *object, guint flags)
+static void
+sp_flowregionexclude_modified(SPObject *object,
+ guint flags)
{
- SP_FLOWREGIONEXCLUDE(object); // Ensure it is the proper type
-
if (flags & SP_OBJECT_MODIFIED_FLAG) {
flags |= SP_OBJECT_PARENT_MODIFIED_FLAG;
}