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

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



The branch, master has been updated
       via  f0943e66e88580e706aa7fdfa80a08d3f2b6f4d2 (commit)
      from  f7ee676f22527b535f51d1506c56a36a8f2416ab (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-misc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


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

commit f0943e66e88580e706aa7fdfa80a08d3f2b6f4d2
Author: Ineiev <ineiev@xxxxxxxxxxxxxxxx>
Commit: Ineiev <ineiev@xxxxxxxxxxxxxxxx>

    suppress annoying decimals in relative coordinates
    
    The threshold for non-aligned object is increased
    because in case of relative coordinates the round-off
    error may double.
    
    Closes-bug: lp-699452 (sf-2117383)
    Closes-bug: lp-699169 (sf-1741659)

:100644 100644 a8f4ed5... b619dd0... M	src/hid/gtk/gui-misc.c

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

commit f0943e66e88580e706aa7fdfa80a08d3f2b6f4d2
Author: Ineiev <ineiev@xxxxxxxxxxxxxxxx>
Commit: Ineiev <ineiev@xxxxxxxxxxxxxxxx>

    suppress annoying decimals in relative coordinates
    
    The threshold for non-aligned object is increased
    because in case of relative coordinates the round-off
    error may double.
    
    Closes-bug: lp-699452 (sf-2117383)
    Closes-bug: lp-699169 (sf-1741659)

diff --git a/src/hid/gtk/gui-misc.c b/src/hid/gtk/gui-misc.c
index a8f4ed5..b619dd0 100644
--- a/src/hid/gtk/gui-misc.c
+++ b/src/hid/gtk/gui-misc.c
@@ -595,7 +595,7 @@ ghid_grid_pcb_to_units (double x, double grid_factor)
 
   nearest_gridpoint = floor (x / grid_factor + .5);
   /* honour snapping to an unaligned object */
-  if (fabs (nearest_gridpoint * grid_factor - x) > 0.55 * COOR_TO_MM)
+  if (fabs (nearest_gridpoint * grid_factor - x) > COOR_TO_MM)
     return x_scaled;
   /* without mm-adjusted grid_factor
      (return floor (x / PCB->Grid + .5) *  PCB->Grid * COOR_TO_MM),




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