Skip to content
Permalink
Browse files

Remove item_height, etc variables

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 4d4de5d1b07b30949b4858cca4e93e9d64c21a64
Showing with 0 additions and 4 deletions.
  1. +0 −4 src/core/qgsexpressioncontext.cpp
@@ -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.
You can’t perform that action at this time.