modelviz: make the LinexComparator more robust by getting the model from a non-nullab...
authorJean Privat <jean@pryen.org>
Thu, 22 Oct 2015 00:34:01 +0000 (20:34 -0400)
committerJean Privat <jean@pryen.org>
Thu, 22 Oct 2015 00:34:01 +0000 (20:34 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/model/model_viz.nit

index 9735136..06f2fb6 100644 (file)
@@ -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