[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: i_callbacks.c
User: cnieves
Date: 06/10/23 14:23:29
Modified: . Tag: glist_dev i_callbacks.c o_copy.c
Log:
* src/i_callbacks.c, src/o_copy.c: Fixed some undo issues.
Removed the o_undo_savestate in o_copy_start added yesterday
(there is no need for that since the undo state is saved after
each action performed).
Do an undo when the user cancels the move action. Since the move
action allow the objects to be rotated or mirrored, we have to go
back to the previous state. Otherwise they keep rotated after the
cancel.
Revision Changes Path
No revision
No revision
1.69.2.7 +6 -2 eda/geda/gaf/gschem/src/i_callbacks.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: i_callbacks.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/i_callbacks.c,v
retrieving revision 1.69.2.6
retrieving revision 1.69.2.7
diff -u -b -r1.69.2.6 -r1.69.2.7
--- i_callbacks.c 22 Oct 2006 20:03:58 -0000 1.69.2.6
+++ i_callbacks.c 23 Oct 2006 18:23:28 -0000 1.69.2.7
@@ -3564,7 +3564,11 @@
o_list_delete_rest(w_current,
w_current->page_current->attrib_place_head);
- if (w_current->inside_action) {
+ /* Perform the undo only if it was a move action */
+ /* They allow the objects to be rotated or mirrored, and they work over
+ the original objects, so we have to go back to the original state */
+ if (w_current->inside_action &&
+ w_current->event_state == ENDMOVE) {
o_undo_callback(w_current, UNDO_ACTION);
w_current->rotated_inside = 0;
}
1.26.2.5 +0 -2 eda/geda/gaf/gschem/src/o_copy.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: o_copy.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/o_copy.c,v
retrieving revision 1.26.2.4
retrieving revision 1.26.2.5
diff -u -b -r1.26.2.4 -r1.26.2.5
--- o_copy.c 22 Oct 2006 20:19:11 -0000 1.26.2.4
+++ o_copy.c 23 Oct 2006 18:23:29 -0000 1.26.2.5
@@ -52,8 +52,6 @@
return;
}
- o_undo_savestate(w_current, UNDO_ALL);
-
w_current->last_drawb_mode = -1;
object = o_select_return_first_object(w_current);
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs