From: Jean Privat Date: Thu, 22 Oct 2015 00:34:01 +0000 (-0400) Subject: modelviz: make the LinexComparator more robust by getting the model from a non-nullab... X-Git-Tag: v0.7.9~10^2 X-Git-Url: http://nitlanguage.org modelviz: make the LinexComparator more robust by getting the model from a non-nullable object Signed-off-by: Jean Privat --- diff --git a/src/model/model_viz.nit b/src/model/model_viz.nit index 9735136..06f2fb6 100644 --- a/src/model/model_viz.nit +++ b/src/model/model_viz.nit @@ -85,7 +85,7 @@ private class LinexComparator var subs = tree.sub[o] var minres = mini(subs.first) var maxres = maxi(subs.first) - var order = minres.model.mmodule_importation_hierarchy + var order = o.model.mmodule_importation_hierarchy for o2 in subs do var c = mini(o2) if c == null then continue