Skip to content

Commit

Permalink
gui: Utilize accessors for 'autotext' in autonumber_text_dialog().
Browse files Browse the repository at this point in the history
  • Loading branch information
vzh committed Jun 2, 2024
1 parent 544b466 commit 4cbe223
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libleptongui/src/x_autonumber.c
Original file line number Diff line number Diff line change
Expand Up @@ -1538,9 +1538,10 @@ void autonumber_text_dialog(GschemToplevel *w_current)
GtkWidget *opt_removenum = NULL;
GtkWidget *sort_order = NULL;

if(autotext == NULL) {
if (schematic_autonumber_get_autotext () == NULL)
{
/* first call of this function, init dialog structure */
autotext=autonumber_init_state();
schematic_autonumber_set_autotext (autonumber_init_state ());
}

/* set the GschemToplevel always. Can it be changed between the calls??? */
Expand Down

0 comments on commit 4cbe223

Please sign in to comment.