mirror of
https://github.com/leozide/leocad
synced 2025-01-30 20:34:56 +01:00
Fixed Properties Dialog crash.
This commit is contained in:
parent
56782b5f8e
commit
dbd85442a9
1 changed files with 3 additions and 3 deletions
|
@ -2179,13 +2179,13 @@ int propertiesdlg_execute(void* param)
|
||||||
}
|
}
|
||||||
|
|
||||||
ColorColumn[NumColors] = NumColumns;
|
ColorColumn[NumColors] = NumColumns;
|
||||||
NumColumns++;
|
NumColumns += 2;
|
||||||
|
|
||||||
list = gtk_clist_new(NumColumns);
|
list = gtk_clist_new(NumColumns);
|
||||||
gtk_widget_show(list);
|
gtk_widget_show(list);
|
||||||
gtk_container_add(GTK_CONTAINER(scroll_win), list);
|
gtk_container_add(GTK_CONTAINER(scroll_win), list);
|
||||||
gtk_container_border_width(GTK_CONTAINER(list), 5);
|
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));
|
gtk_clist_column_titles_show(GTK_CLIST(list));
|
||||||
|
|
||||||
label = gtk_label_new("Piece");
|
label = gtk_label_new("Piece");
|
||||||
|
@ -2204,7 +2204,7 @@ int propertiesdlg_execute(void* param)
|
||||||
|
|
||||||
label = gtk_label_new("Total");
|
label = gtk_label_new("Total");
|
||||||
gtk_widget_show(label);
|
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];
|
char** Row = new char*[NumColumns];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue