Skip to content

Commit e40d0ef

Browse files
committed
Fix #917: Symmetry doesn't display with non-US locales
- Always use the US locale when printing jmol scripts - Update Jmol to 14.31.10 while we're at it.
1 parent 72eae71 commit e40d0ef

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

biojava-structure-gui/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<dependency>
4343
<groupId>net.sourceforge.jmol</groupId>
4444
<artifactId>jmol</artifactId>
45-
<version>14.29.17</version>
45+
<version>14.31.10</version>
4646
</dependency>
4747
<!-- logging dependencies (managed by parent pom, don't set versions or
4848
scopes here) -->

biojava-structure-gui/src/main/java/org/biojava/nbio/structure/symmetry/jmolScript/JmolSymmetryScriptGenerator.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import javax.vecmath.Tuple3d;
3030

3131
import java.util.List;
32+
import java.util.Locale;
3233
import java.util.Map;
3334
import java.util.Map.Entry;
3435

@@ -226,11 +227,11 @@ protected static String getJmolPoint(Tuple3d point) {
226227
}
227228

228229
protected static String f1Dot2(float number) {
229-
return String.format("%1.2f", number);
230+
return String.format(Locale.US, "%1.2f", number);
230231
}
231232

232233
protected static String fDot2(double number) {
233-
return String.format("%.2f", number);
234+
return String.format(Locale.US, "%.2f", number);
234235
}
235236

236237
/**

0 commit comments

Comments
 (0)