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:
iobyte 2024-01-20 05:30:04 +00:00
parent bfd43384b3
commit 2f516bdb6c
2 changed files with 12 additions and 5 deletions

View File

@ -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());

View File

@ -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;