summaryrefslogtreecommitdiffstats
path: root/src/sp-item.cpp
diff options
context:
space:
mode:
authorAbhishek Sharma Public <spyzerdotabhishek0at-signgmaildotcom>2010-07-12 16:36:46 +0000
committerAbhishek Sharma Public <spyzerdotabhishek0at-signgmaildotcom>2010-07-12 16:36:46 +0000
commit6cc35b45eab6422a6b6f67d621aa259a0a73786f (patch)
treedf398a765e8fcee6d5455270544cafb197651c42 /src/sp-item.cpp
parentC++ification of SPObject continued along with the onset of XML Privatisation.... (diff)
downloadinkscape-6cc35b45eab6422a6b6f67d621aa259a0a73786f.tar.gz
inkscape-6cc35b45eab6422a6b6f67d621aa259a0a73786f.zip
SPObject c++ification finalized along with the beginning of XML Privatisation tweaks
(bzr r9546.1.6)
Diffstat (limited to 'src/sp-item.cpp')
-rw-r--r--src/sp-item.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp
index 7f67caee8..ae77f9d84 100644
--- a/src/sp-item.cpp
+++ b/src/sp-item.cpp
@@ -405,16 +405,16 @@ void SPItem::lowerToBottom() {
void
SPItem::sp_item_build(SPObject *object, SPDocument *document, Inkscape::XML::Node *repr)
{
- sp_object_read_attr(object, "style");
- sp_object_read_attr(object, "transform");
- sp_object_read_attr(object, "clip-path");
- sp_object_read_attr(object, "mask");
- sp_object_read_attr(object, "sodipodi:insensitive");
- sp_object_read_attr(object, "sodipodi:nonprintable");
- sp_object_read_attr(object, "inkscape:transform-center-x");
- sp_object_read_attr(object, "inkscape:transform-center-y");
- sp_object_read_attr(object, "inkscape:connector-avoid");
- sp_object_read_attr(object, "inkscape:connection-points");
+ object->readAttr( "style");
+ object->readAttr( "transform");
+ object->readAttr( "clip-path");
+ object->readAttr( "mask");
+ object->readAttr( "sodipodi:insensitive");
+ object->readAttr( "sodipodi:nonprintable");
+ object->readAttr( "inkscape:transform-center-x");
+ object->readAttr( "inkscape:transform-center-y");
+ object->readAttr( "inkscape:connector-avoid");
+ object->readAttr( "inkscape:connection-points");
if (((SPObjectClass *) (SPItemClass::static_parent_class))->build) {
(* ((SPObjectClass *) (SPItemClass::static_parent_class))->build)(object, document, repr);
@@ -1405,8 +1405,8 @@ SPItem::adjust_livepatheffect (Geom::Matrix const &postmul, bool set)
void
SPItem::doWriteTransform(Inkscape::XML::Node *repr, Geom::Matrix const &transform, Geom::Matrix const *adv, bool compensate)
{
- g_return_if_fail(this != NULL);
- g_return_if_fail(SP_IS_ITEM(this));
+ //g_return_if_fail(this != NULL);
+ //g_return_if_fail(SP_IS_ITEM(this));
g_return_if_fail(repr != NULL);
// calculate the relative transform, if not given by the adv attribute