Skip to content
Permalink
Browse files
Fix for ticket #953.
git-svn-id: http://svn.osgeo.org/qgis/trunk@9014 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gjm committed Aug 7, 2008
1 parent e834c0a commit 36cda7debf829a934ec433bd26d4245a7634b9b9
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/core/qgsattributeaction.cpp
@@ -105,8 +105,12 @@ QString QgsAttributeAction::expandAction(QString action, const std::vector<std::

for (unsigned int i = 0; i < values.size(); ++i)
{
QString to_replace = "%" + values[i].first;
expanded_action = expanded_action.replace(to_replace, values[i].second);
// Check for a replace a quoted version and a non-quoted version.
QString to_replace_1 = "[%" + values[i].first + "]";
QString to_replace_2 = "%" + values[i].first;

expanded_action = expanded_action.replace(to_replace_1, values[i].second);
expanded_action = expanded_action.replace(to_replace_2, values[i].second);
}

return expanded_action;

0 comments on commit 36cda7d

Please sign in to comment.