summaryrefslogtreecommitdiff
path: root/cad/xcircuit/patches/patch-undo.c
blob: d9d9f22000b183ef61095f6e17da0eba18b00674 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-undo.c,v 1.1 2013/03/02 18:21:39 joerg Exp $

--- undo.c.orig	2013-03-01 15:02:52.000000000 +0000
+++ undo.c
@@ -532,7 +532,7 @@ short undo_one_action()
    thisrecord = xobjs.undostack;
    if (thisrecord == NULL) {
       Fprintf(stderr, "Nothing to undo!\n");
-      return;
+      return -1;
    }
 
    xobjs.undostack = thisrecord->next;
@@ -775,7 +775,7 @@ short redo_one_action()
    thisrecord = xobjs.redostack;
    if (thisrecord == NULL) {
       Fprintf(stderr, "Nothing to redo!\n");
-      return;
+      return -1;
    }
    xobjs.undostack = thisrecord;
    xobjs.redostack = thisrecord->last;