Skip to content

Commit

Permalink
Remove item_height, etc variables
Browse files Browse the repository at this point in the history
Before people become reliant on these variables we need a method
for evaluating data defined item rects which use them which
doesn't result in infinite recursion...
  • Loading branch information
nyalldawson committed Aug 24, 2015
1 parent 7871d6c commit 4d4de5d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/core/qgsexpressioncontext.cpp
Original file line number Diff line number Diff line change
@@ -741,10 +741,6 @@ QgsExpressionContextScope *QgsExpressionContextUtils::composerItemScope( const Q
//add known composer item context variables
scope->addVariable( QgsExpressionContextScope::StaticVariable( "item_id", composerItem->id(), true ) );
scope->addVariable( QgsExpressionContextScope::StaticVariable( "item_uuid", composerItem->uuid(), true ) );
scope->addVariable( QgsExpressionContextScope::StaticVariable( "item_left", composerItem->sceneBoundingRect().left(), true ) );
scope->addVariable( QgsExpressionContextScope::StaticVariable( "item_top", composerItem->sceneBoundingRect().top(), true ) );
scope->addVariable( QgsExpressionContextScope::StaticVariable( "item_width", composerItem->sceneBoundingRect().width(), true ) );
scope->addVariable( QgsExpressionContextScope::StaticVariable( "item_height", composerItem->sceneBoundingRect().height(), true ) );

return scope;
}

0 comments on commit 4d4de5d

Please sign in to comment.