mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
fixed crash with empty numeric axes
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1046 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -619,6 +619,7 @@ void GraphStats::setData(const GraphDataP& d) {
|
||||
GraphAxis& axis = axis_data();
|
||||
values.clear();
|
||||
if (!axis.numeric) return;
|
||||
if (axis.groups.empty()) return;
|
||||
values.push_back(make_pair(_("max"), axis.groups.back().name));
|
||||
values.push_back(make_pair(_("mean"), String::Format(_("%.2f"), axis.mean)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user