summaryrefslogtreecommitdiffstats
path: root/src/conditions.cpp
diff options
context:
space:
mode:
authorAbhishek Sharma public <spyzerdotabhishek0at-signgmaildotcom>2010-07-20 10:44:23 +0000
committerAbhishek Sharma public <spyzerdotabhishek0at-signgmaildotcom>2010-07-20 10:44:23 +0000
commit88fc01afa8ea80d5105961d9103cc8f33582e7fb (patch)
tree92fe8202ab6ac05b62eaca4a659a3bea23cff0ab /src/conditions.cpp
parentI didn't see it but there was an important file missing namely document-undo.h (diff)
downloadinkscape-88fc01afa8ea80d5105961d9103cc8f33582e7fb.tar.gz
inkscape-88fc01afa8ea80d5105961d9103cc8f33582e7fb.zip
More on c++ification and some XML privatisation
(bzr r9546.1.10)
Diffstat (limited to 'src/conditions.cpp')
-rw-r--r--src/conditions.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/conditions.cpp b/src/conditions.cpp
index 4a18a6913..7087abac2 100644
--- a/src/conditions.cpp
+++ b/src/conditions.cpp
@@ -41,10 +41,11 @@ static Condition _condition_handlers[] = {
/* function which evaluates if item should be displayed */
bool sp_item_evaluate(SPItem const *item) {
- Inkscape::XML::Node *grepr = SP_OBJECT_REPR (item);
+ //Inkscape::XML::Node *grepr = SP_OBJECT_REPR (item);
for ( unsigned int i = 0 ; i < sizeof(_condition_handlers)/sizeof(_condition_handlers[0]) ; i++ ) {
- gchar const *value = grepr->attribute(_condition_handlers[i].attribute);
+ //gchar const *value = grepr->attribute(_condition_handlers[i].attribute);
+ gchar const *value = item->getAttribute(_condition_handlers[i].attribute);
if ( NULL == value )
continue;