Skip to content
Permalink
Browse files
change attribute action notation from [%attr%]/%attr% back to [%attr]…
…/%attr

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14341 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Oct 5, 2010
1 parent ba27ce7 commit 2320cc8943d4546e148ca3925c65e1baa6ade52c
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/qgsattributeaction.cpp
@@ -114,9 +114,9 @@ QString QgsAttributeAction::expandAction( QString action, const QgsAttributeMap

// Check for a replace a quoted version and a non-quoted version.
QString to_replace_1 = "[%" + fit->name() + "]";
QString to_replace_2 = "%" + fit->name() + "%";
QString to_replace_3 = "%" + mLayer->attributeDisplayName( it.key() ) + "%";
QString to_replace_4 = "[%" + mLayer->attributeDisplayName( it.key() ) + "%]";
QString to_replace_2 = "%" + fit->name();
QString to_replace_3 = "%" + mLayer->attributeDisplayName( it.key() );
QString to_replace_4 = "[%" + mLayer->attributeDisplayName( it.key() ) + "]";

expanded_action = expanded_action.replace( to_replace_1, it.value().toString() );
expanded_action = expanded_action.replace( to_replace_2, it.value().toString() );

0 comments on commit 2320cc8

Please sign in to comment.