minor change

This commit is contained in:
bancika
2020-03-23 00:01:02 +01:00
parent 015677c567
commit edce9835d0
3 changed files with 6 additions and 6 deletions
@@ -308,11 +308,11 @@ public abstract class AbstractLeadedComponent<T> extends AbstractTransparentComp
g2d.setColor(finalLabelColor);
FontMetrics fontMetrics = g2d.getFontMetrics();
String label = "";
label = display == Display.NAME ? getName() : (getValue() == null ? "" : getValue().toString());
if (display == Display.NONE) {
label = getDisplay() == Display.NAME ? getName() : (getValue() == null ? "" : getValue().toString());
if (getDisplay() == Display.NONE) {
label = "";
}
if (display == Display.BOTH) {
if (getDisplay() == Display.BOTH) {
label = getName() + " " + (getValue() == null ? "" : getValue().toString());
}
Rectangle2D textRect = fontMetrics.getStringBounds(label, g2d);
+1 -2
View File
@@ -103,7 +103,7 @@
jvmrequired="1.8"
copyright="Branislav Stojkovic, a.k.a. bancika"
displayname="DIY Layout Creator"
identifier="org.diylc.App"
identifier="org.diylc.Desktop"
shortversion="${diylc.version}"
applicationCategory="public.app-category.graphics-design"
icon="diylc.icns"
@@ -112,7 +112,6 @@
<classpath file="${jar.dir}\diylc.jar" />
<classpath file="${jar.dir}\lib\*.jar" />
<classpath file="${jar.dir}\library\*.jar" />
<option value="-splash:splash.png" />
<option value="-Xms512m" />
<option value="-Xmx2048m" />
<option value="-Dorg.diylc.scriptRun=true" />
@@ -136,6 +136,7 @@ public class DIYLCStarter {
splash.dispose();
mainFrame.setVisible(true);
if (args.length > 0) {
mainFrame.getPresenter().loadProjectFromFile(args[0]);
} else {