trackeditor: fix crash when adding new object
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9165 30fe4595-0a0c-4342-8851-515496e4dcbd
This commit is contained in:
parent
10e2a8dc25
commit
b723c8493e
|
@ -537,6 +537,11 @@ public class TrackObjectDialog extends JDialog
|
|||
}
|
||||
}
|
||||
objectShape.setName(newName);
|
||||
|
||||
if (graphicObject == null)
|
||||
{
|
||||
graphicObject = new GraphicObject(objectShape);
|
||||
}
|
||||
|
||||
String orientationText = orientationTextField.getText();
|
||||
if (orientationText == null || orientationText.isEmpty())
|
||||
|
|
|
@ -34,7 +34,7 @@ public class Properties
|
|||
private static Properties instance = new Properties();
|
||||
private Vector<ActionListener> propertiesListeners = new Vector<ActionListener>();
|
||||
public final String title = "sd2-trackeditor";
|
||||
public final String version = "1.3.20";
|
||||
public final String version = "1.3.21";
|
||||
private String path;
|
||||
|
||||
private double imageScale = 1;
|
||||
|
|
Loading…
Reference in New Issue