From 88fc01afa8ea80d5105961d9103cc8f33582e7fb Mon Sep 17 00:00:00 2001 From: Abhishek Sharma public Date: Tue, 20 Jul 2010 16:14:23 +0530 Subject: More on c++ification and some XML privatisation (bzr r9546.1.10) --- src/conditions.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/conditions.cpp') 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; -- cgit v1.2.3