mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fix for ticket #953.
git-svn-id: http://svn.osgeo.org/qgis/trunk@9014 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
e834c0a01c
commit
36cda7debf
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user