[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: branch: master updated (1.1.2.20070818-57-g2be89fa)



The branch, master has been updated
       via  2be89fae224e359b5e349341da160cd19542d53d (commit)
      from  2e3c06cbcdce8254f70162ecebd650980cf70ee9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 gschem/src/x_event.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


=================
 Commit Messages
=================

commit 2be89fae224e359b5e349341da160cd19542d53d
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date:   Sun Sep 9 00:54:12 2007 +0100

    Fix grid snapping in "Edit->Mirror Mode"
    
    Where the user selectes Edit->Mirror Mode, then clicks a point about which
    to mirror, the snap operation on the mouse coordinates was not taking place
    until after the mirror. Bug was introduced with noscreen changes.

:100644 100644 4833514... 16b99b6... M	gschem/src/x_event.c

=========
 Changes
=========

commit 2be89fae224e359b5e349341da160cd19542d53d
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date:   Sun Sep 9 00:54:12 2007 +0100

    Fix grid snapping in "Edit->Mirror Mode"
    
    Where the user selectes Edit->Mirror Mode, then clicks a point about which
    to mirror, the snap operation on the mouse coordinates was not taking place
    until after the mirror. Bug was introduced with noscreen changes.

diff --git a/gschem/src/x_event.c b/gschem/src/x_event.c
index 4833514..16b99b6 100644
--- a/gschem/src/x_event.c
+++ b/gschem/src/x_event.c
@@ -447,11 +447,12 @@ gint x_event_button_pressed(GtkWidget *widget, GdkEventButton *event,
                        (int) event->x,
                        (int) event->y,
                &w_x, &w_y );
+        w_x = snap_grid(w_current, w_x);
+        w_y = snap_grid(w_current, w_y);
+
         o_mirror_world(w_current,
                        geda_list_get_glist( w_current->page_current->selection_list ),
                        w_x, w_y);
-        w_x = snap_grid(w_current, w_x);
-        w_y = snap_grid(w_current, w_y);
 
         w_current->inside_action = 0;
         i_set_state(w_current, SELECT);




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs