File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -1365,6 +1365,7 @@ public UndoAction() {
1365
1365
public void actionPerformed (ActionEvent e ) {
1366
1366
try {
1367
1367
undo .undo ();
1368
+ sketch .setModified (true );
1368
1369
} catch (CannotUndoException ex ) {
1369
1370
//System.out.println("Unable to undo: " + ex);
1370
1371
//ex.printStackTrace();
@@ -1386,17 +1387,11 @@ protected void updateUndoState() {
1386
1387
undoItem .setEnabled (true );
1387
1388
undoItem .setText (undo .getUndoPresentationName ());
1388
1389
putValue (Action .NAME , undo .getUndoPresentationName ());
1389
- if (sketch != null ) {
1390
- sketch .setModified (true ); // 0107
1391
- }
1392
1390
} else {
1393
1391
this .setEnabled (false );
1394
1392
undoItem .setEnabled (false );
1395
1393
undoItem .setText (_ ("Undo" ));
1396
1394
putValue (Action .NAME , "Undo" );
1397
- if (sketch != null ) {
1398
- sketch .setModified (false ); // 0107
1399
- }
1400
1395
}
1401
1396
}
1402
1397
}
@@ -1411,6 +1406,7 @@ public RedoAction() {
1411
1406
public void actionPerformed (ActionEvent e ) {
1412
1407
try {
1413
1408
undo .redo ();
1409
+ sketch .setModified (true );
1414
1410
} catch (CannotRedoException ex ) {
1415
1411
//System.out.println("Unable to redo: " + ex);
1416
1412
//ex.printStackTrace();
You can’t perform that action at this time.
0 commit comments