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

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



The branch, master has been updated
       via  94d80de0fc0445bc1c1822ff505057182487ccbe (commit)
      from  8ac8d6c6403bd8f322eb146ebe129718cc989a0d (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/gui-output-events.c |   18 +++++-------------
 1 files changed, 5 insertions(+), 13 deletions(-)


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

commit 94d80de0fc0445bc1c1822ff505057182487ccbe
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    hid/gtk: A couple of NOOP cosmetic changes to ghid_port_ranges_pan()

:100644 100644 0fc07f3... ba637c3... M	src/hid/gtk/gui-output-events.c

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

commit 94d80de0fc0445bc1c1822ff505057182487ccbe
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    hid/gtk: A couple of NOOP cosmetic changes to ghid_port_ranges_pan()

diff --git a/src/hid/gtk/gui-output-events.c b/src/hid/gtk/gui-output-events.c
index 0fc07f3..ba637c3 100644
--- a/src/hid/gtk/gui-output-events.c
+++ b/src/hid/gtk/gui-output-events.c
@@ -77,16 +77,8 @@ ghid_port_ranges_pan (gdouble x, gdouble y, gboolean relative)
   x0 = h_adj->value;
   y0 = v_adj->value;
 
-  if (relative)
-    {
-      x1 = x0 + x;
-      y1 = y0 + y;
-    }
-  else
-    {
-      x1 = x;
-      y1 = y;
-    }
+  x1 = relative ? x + x0 : x;
+  y1 = relative ? y + y0 : y;
 
   if (x1 < h_adj->lower)
     x1 = h_adj->lower;
@@ -110,9 +102,9 @@ ghid_port_ranges_pan (gdouble x, gdouble y, gboolean relative)
   return ((x0 != x1) || (y0 != y1));
 }
 
-  /* Do scrollbar scaling based on current port drawing area size and
-     |  overall PCB board size.
-   */
+/* Do scrollbar scaling based on current port drawing area size and
+   |  overall PCB board size.
+ */
 void
 ghid_port_ranges_scale (void)
 {




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