Skip to content

Commit cd776c7

Browse files
committed
Fix showing rules < 10
1 parent 6824a5e commit cd776c7

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/main/java/wprover/PanelProve.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1665,7 +1665,12 @@ String setNode(Cond co) {
16651665
}
16661666
ret += "\"";
16671667
// The files Rule??.jpg are located in the folder web (FIXME: make the GitHub repository configurable for forks):
1668-
String url = "https://github.com/kovzol/Java-Geometry-Expert/blob/master/src/main/resources/docs/web/Rule" + rule + ".jpg?raw=true";
1668+
String ruleStr = rule + "";
1669+
if (rule < 10) {
1670+
ruleStr = "0" + ruleStr; // leading zero
1671+
}
1672+
String url = "https://github.com/kovzol/Java-Geometry-Expert/blob/master/src/main/resources/docs/web/Rule"
1673+
+ ruleStr + ".jpg?raw=true";
16691674
ret += ", URL=\"" + url + "\"";
16701675
}
16711676
else {

0 commit comments

Comments
 (0)