summaryrefslogtreecommitdiffstats
path: root/src/conditions.cpp
diff options
context:
space:
mode:
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;