Made infinite depth for HLS combo selectable in Eclipse preferences
authorDaniel Kirschten <daniel.kirschten@gmx.de>
Tue, 24 Sep 2019 14:50:05 +0000 (16:50 +0200)
committerDaniel Kirschten <daniel.kirschten@gmx.de>
Tue, 24 Sep 2019 14:50:05 +0000 (16:50 +0200)
plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/LogicUICanvas.java

index 50e6471..78f3bdd 100644 (file)
@@ -216,7 +216,7 @@ public class LogicUICanvas extends ZoomableCanvas
                componentsByItemIndex.clear();
                componentSelector.setItems();
                addComponentSelectorItems(componentsByItemIndex, "", componentSelector, model,
-                               Preferences.current().getInt("net.mograsim.logic.model.debug.hlsshelldepth"));
+                               Preferences.current().getInt("net.mograsim.logic.model.debug.hlsshelldepth") - 1);
        }
 
        private void addComponentSelectorItems(List<ModelComponent> componentsByItemIndex, String base, Combo componentSelector,