Thanks for the patch! I've checked it in already.

On Tue, Sep 18, 2012 at 5:26 PM, Jelle Martijn Kok <[email protected]> wrote:

> This fixes an error where the NumColumns is one too low and leocad will
> crash when requesting the properties.
> It also makes the first column auto sized, so the Piece text will show
> nicely
>
> Jelle Martijn
>
>
> Index: linux/dialogs.cpp
> ==============================**==============================**=======
> --- linux/dialogs.cpp    (revision 1177)
> +++ linux/dialogs.cpp    (working copy)
> @@ -2179,13 +2179,13 @@
>      }
>
>      ColorColumn[NumColors] = NumColumns;
> -    NumColumns++;
> +    NumColumns+=2;
>
>      list = gtk_clist_new(NumColumns);
>      gtk_widget_show(list);
>      gtk_container_add(GTK_**CONTAINER(scroll_win), list);
>      gtk_container_border_width(**GTK_CONTAINER(list), 5);
> -    gtk_clist_set_column_width(**GTK_CLIST(list), 0, 80);
> +    gtk_clist_set_column_auto_**resize(GTK_CLIST(list), 0, TRUE);
>      gtk_clist_column_titles_show(**GTK_CLIST(list));
>
>      label = gtk_label_new("Piece");
> @@ -2204,7 +2204,7 @@
>
>      label = gtk_label_new("Total");
>      gtk_widget_show(label);
> -    gtk_clist_set_column_widget(**GTK_CLIST(list), NumColumns, label);
> +    gtk_clist_set_column_widget(**GTK_CLIST(list), NumColumns-1, label);
>
>      char** Row = new char*[NumColumns];
>
>
>
> --
> ------------------------------**------------------------------**
> ------------
> You/Com Audiocommunicatie BV
> Motorenweg 5k
> 2623CR Delft
> The Netherlands
> tel. : (+31) 15 262 59 55
> fax. : (+31) 15 257 15 95
> mail : [email protected]
> http : http://www.youcom.nl
> ------------------------------**------------------------------**
> ------------
> ______________________________**_________________
> Leocad mailing list
> [email protected]
> https://list.gerf.org/**listinfo/leocad<https://list.gerf.org/listinfo/leocad>
>
_______________________________________________
Leocad mailing list
[email protected]
https://list.gerf.org/listinfo/leocad

Reply via email to