trackeditor: fix setting main track profil
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9265 30fe4595-0a0c-4342-8851-515496e4dcbd
This commit is contained in:
parent
bfd43384b3
commit
2f516bdb6c
|
@ -649,14 +649,21 @@ public class TrackProperties extends PropertyPanel
|
|||
getEditorFrame().documentIsModified = true;
|
||||
}
|
||||
|
||||
if (isDifferent((String) surfaceComboBox.getSelectedItem(),
|
||||
getEditorFrame().getTrackData().getMainTrack().getSurface(), stringResult))
|
||||
if (isDifferent((String) surfaceComboBox.getSelectedItem(),
|
||||
getEditorFrame().getTrackData().getMainTrack().getSurface(), stringResult))
|
||||
{
|
||||
getEditorFrame().getTrackData().getMainTrack().setSurface(stringResult.getValue());
|
||||
getEditorFrame().documentIsModified = true;
|
||||
}
|
||||
|
||||
if (isDifferent((String) profilComboBox.getSelectedItem(),
|
||||
getEditorFrame().getTrackData().getMainTrack().getProfil(), stringResult))
|
||||
{
|
||||
getEditorFrame().getTrackData().getMainTrack().setSurface(stringResult.getValue());
|
||||
getEditorFrame().getTrackData().getMainTrack().setProfil(stringResult.getValue());
|
||||
getEditorFrame().documentIsModified = true;
|
||||
}
|
||||
|
||||
if (isDifferent(profilStepsLengthTextField.getText(),
|
||||
if (isDifferent(profilStepsLengthTextField.getText(),
|
||||
getEditorFrame().getTrackData().getMainTrack().getProfilStepsLength(), doubleResult))
|
||||
{
|
||||
getEditorFrame().getTrackData().getMainTrack().setProfilStepsLength(doubleResult.getValue());
|
||||
|
|
|
@ -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.4.11";
|
||||
public final String version = "1.4.12";
|
||||
private String path;
|
||||
|
||||
private double imageScale = 1;
|
||||
|
|
Loading…
Reference in New Issue