trackeditor: fix saving of edited object map objects

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9214 30fe4595-0a0c-4342-8851-515496e4dcbd
This commit is contained in:
iobyte 2023-11-07 20:27:53 +00:00
parent 8ab6fd749e
commit 878857f1a1
3 changed files with 5 additions and 3 deletions

View File

@ -482,7 +482,6 @@ public class TrackObjectDialog extends JDialog
return;
}
editorFrame.setCurrentObjectMap(objectMapComboBox.getSelectedIndex());
changed = true;
}
private void objectComboBoxChanged()
@ -561,7 +560,7 @@ public class TrackObjectDialog extends JDialog
JOptionPane.showMessageDialog(this, "No object selected!", "Error", JOptionPane.ERROR_MESSAGE);
return;
}
setRGB(rgb);
if (objectShape != null)
@ -588,6 +587,7 @@ public class TrackObjectDialog extends JDialog
String newName = (String) objectComboBox.getSelectedItem();
objectShape.setName(newName);
editorFrame.getObjectMaps().get(editorFrame.getCurrentObjectMap()).setChanged(true);
}
if (graphicObject == null)

View File

@ -2435,6 +2435,8 @@ public class CircuitView extends JComponent implements KeyListener, MouseListene
{
if (objects.elementAt(j) == shape)
{
editorFrame.setCurrentObjectMap(i);
Undo.add(new UndoEditObject(objectMap, shape));
TrackObjectDialog editObjectDialog = new TrackObjectDialog(editorFrame, false, shape, me.getXOnScreen(), me.getYOnScreen());

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.3.25";
public final String version = "1.3.26";
private String path;
private double imageScale = 1;