mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-13 05:57:00 -04:00
Fixed untagging in statistics panel
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@638 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -120,7 +120,7 @@ void StatsCategory::find_dimensions(const vector<StatsDimensionP>& available) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!dim) {
|
if (!dim) {
|
||||||
handle_error(_ERROR_1_("dimension not found",dim),false);
|
handle_error(_ERROR_1_("dimension not found",n),false);
|
||||||
} else {
|
} else {
|
||||||
dimensions.push_back(dim);
|
dimensions.push_back(dim);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ class StatsFilter : public CardListFilter {
|
|||||||
Context& ctx = set.getContext(card);
|
Context& ctx = set.getContext(card);
|
||||||
FOR_EACH(v, values) {
|
FOR_EACH(v, values) {
|
||||||
StatsDimension& dim = *v.first;
|
StatsDimension& dim = *v.first;
|
||||||
String value = dim.script.invoke(ctx)->toString();
|
String value = untag(dim.script.invoke(ctx)->toString());
|
||||||
if (dim.split_list) {
|
if (dim.split_list) {
|
||||||
if (!chosen(v.second, value)) return false;
|
if (!chosen(v.second, value)) return false;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user