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

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



The branch, master has been updated
       via  1ffdc656f5c601db9b4625b9aad14b4d33a49868 (commit)
      from  6bbcd9e693a26816abccbd8acdb95100d23c01f9 (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/styles.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


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

commit 1ffdc656f5c601db9b4625b9aad14b4d33a49868
Author: DJ Delorie <dj@xxxxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>

    [lesstif] set units for styles dialog in more places
    
    The styles dialog was segfaulting as the units hadn't been set yet, if
    you open the style dialog before doing anything with the grid.

:100644 100644 b6e3b51... 5ec19d8... M	src/hid/lesstif/styles.c

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

commit 1ffdc656f5c601db9b4625b9aad14b4d33a49868
Author: DJ Delorie <dj@xxxxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>

    [lesstif] set units for styles dialog in more places
    
    The styles dialog was segfaulting as the units hadn't been set yet, if
    you open the style dialog before doing anything with the grid.

diff --git a/src/hid/lesstif/styles.c b/src/hid/lesstif/styles.c
index b6e3b51..5ec19d8 100644
--- a/src/hid/lesstif/styles.c
+++ b/src/hid/lesstif/styles.c
@@ -192,6 +192,7 @@ units_cb ()
     unit = get_unit_struct ("mil");
   else
     unit = get_unit_struct ("mm");
+  ustr = XmStringCreateLocalized ((char *)unit->suffix);
   update_values ();
 }
 
@@ -355,6 +356,9 @@ AdjustStyle (int argc, char **argv, Coord x, Coord y)
     {
       int i;
 
+      unit = Settings.grid_unit;
+      ustr = XmStringCreateLocalized ((char *)unit->suffix);
+
       n = 0;
       stdarg (XmNautoUnmanage, False);
       stdarg (XmNtitle, "Route Styles");




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