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

gEDA-cvs: pcb.git: branch: master updated (c8e0f875155405bdcdb6835e8439a2c2fd4fb4a0)



The branch, master has been updated
       via  c8e0f875155405bdcdb6835e8439a2c2fd4fb4a0 (commit)
      from  0ac0076bc9af38dd07700cbb7a6d3f21a8fc2621 (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
=========

 src/hid/gtk/gtkhid-main.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)


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

commit c8e0f875155405bdcdb6835e8439a2c2fd4fb4a0
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    gtk: Fix ghid_zoom_view_fit() to work when the board is flipped.
    
    Affects-bug: lp-850311

:100644 100644 4383ee5... e0cfbc9... M	src/hid/gtk/gtkhid-main.c

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

commit c8e0f875155405bdcdb6835e8439a2c2fd4fb4a0
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    gtk: Fix ghid_zoom_view_fit() to work when the board is flipped.
    
    Affects-bug: lp-850311

diff --git a/src/hid/gtk/gtkhid-main.c b/src/hid/gtk/gtkhid-main.c
index 4383ee5..e0cfbc9 100644
--- a/src/hid/gtk/gtkhid-main.c
+++ b/src/hid/gtk/gtkhid-main.c
@@ -128,9 +128,10 @@ ghid_zoom_view_rel (Coord center_x, Coord center_y, double factor)
 static void
 ghid_zoom_view_fit (void)
 {
-  ghid_pan_view_abs (0, 0, 0, 0);
-  ghid_zoom_view_abs (0, 0, MAX (PCB->MaxWidth  / gport->width,
-                                 PCB->MaxHeight / gport->height));
+  ghid_pan_view_abs (SIDE_X (0), SIDE_Y (0), 0, 0);
+  ghid_zoom_view_abs (SIDE_X (0), SIDE_Y (0),
+                      MAX (PCB->MaxWidth  / gport->width,
+                           PCB->MaxHeight / gport->height));
 }
 
 static void




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