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

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



The branch, master has been updated
       via  ba3a56929b240c5c3ab1ee1af7149b30dcdbb8cf (commit)
      from  7819244c48a6e38a8d4b486e8205549f4b35a94d (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/lesstif/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


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

commit ba3a56929b240c5c3ab1ee1af7149b30dcdbb8cf
Author: Gabriel Paubert <paubert@xxxxxxx>
Commit: Andrew Poelstra <asp11@xxxxxx>

    Correct parameter order in Distance function in hid/lesstif/main.c
    
    in src/did/lesstif/main.c, the Distance function is called
    with the parameters in the wrong order.
    
    This small patches fixes the problem. I still think that
    the format is wrong, or at least the rounding to integer
    mm/mil taking only the grid into account, but I've not yet
    decided on how to fix it. The worse is that often the display
    is wrong because the decimal part is truncated (displaying
    say -24 between two grid points on a 5mil grid).
    
            Gabriel

:100644 100644 811ac26... be9a330... M	src/hid/lesstif/main.c

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

commit ba3a56929b240c5c3ab1ee1af7149b30dcdbb8cf
Author: Gabriel Paubert <paubert@xxxxxxx>
Commit: Andrew Poelstra <asp11@xxxxxx>

    Correct parameter order in Distance function in hid/lesstif/main.c
    
    in src/did/lesstif/main.c, the Distance function is called
    with the parameters in the wrong order.
    
    This small patches fixes the problem. I still think that
    the format is wrong, or at least the rounding to integer
    mm/mil taking only the grid into account, but I've not yet
    decided on how to fix it. The worse is that often the display
    is wrong because the decimal part is truncated (displaying
    say -24 between two grid points on a 5mil grid).
    
            Gabriel

diff --git a/src/hid/lesstif/main.c b/src/hid/lesstif/main.c
index 811ac26..be9a330 100644
--- a/src/hid/lesstif/main.c
+++ b/src/hid/lesstif/main.c
@@ -2321,7 +2321,7 @@ mark_delta_to_widget (BDimension dx, BDimension dy, Widget w)
   else
     {
       int angle = atan2 (dy, -dx) * 180 / M_PI;
-      BDimension dist = Distance (0, dx, 0, dy);
+      BDimension dist = Distance (0, 0, dx, dy);
 
       buf = pcb_g_strdup_printf ("%m+%+.*mS, %+.*mS (%.*mS, %d\260)", UUNIT,
                              prec, dx, prec, dy, prec, dist, angle);




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