Skip to content

Commit

Permalink
Fix bug with Estonian locale breaking stylesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
Scytheface authored Sep 18, 2023
1 parent 3f46a1e commit 3e10af6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/ee/ut/dendroloj/GraphGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import org.graphstream.ui.view.util.MouseManager;
import org.graphstream.ui.view.util.ShortcutManager;

import java.util.Locale;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
Expand All @@ -23,7 +24,7 @@ public static void init(double uiScale) {
Graph graph = new SingleGraph("DendroloJ");
graph.setAttribute("ui.quality");
graph.setAttribute("ui.antialias");
graph.setAttribute("ui.stylesheet", String.format("""
graph.setAttribute("ui.stylesheet", String.format(Locale.ROOT, """
edge {
size: %fpx;
text-size: %f;
Expand Down Expand Up @@ -190,4 +191,4 @@ public void actionPerformed(ActionEvent event) {

root.setVisible(true);
}
}
}

0 comments on commit 3e10af6

Please sign in to comment.