Skip to content

Commit c8492e1

Browse files
committed
records not numbered in viz
1 parent 01a3599 commit c8492e1

File tree

1 file changed

+2
-0
lines changed
  • org.alloytools.alloy.application/src/main/java/edu/mit/csail/sdg/alloy4viz

1 file changed

+2
-0
lines changed

org.alloytools.alloy.application/src/main/java/edu/mit/csail/sdg/alloy4viz/VizState.java

+2
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ void applyDefaultVar() {
173173
for (AlloyType r : currentModel.getTypes()) {
174174
if (nodeStyle.get(r) == null && r.isVar && !(currentModel.getSuperType(r).isVar || nodeStyle.get(currentModel.getSuperType(r)) != null))
175175
nodeStyle.put(r, DotStyle.DASHED);
176+
if (number.get(r) == null && r.isRecord)
177+
number.put(r, false);
176178
}
177179
for (AlloyRelation r : currentModel.getRelations()) {
178180
if (edgeStyle.get(r) == null && r.isVar)

0 commit comments

Comments
 (0)