diff options
Diffstat (limited to 'src/crystfelsymmetryselector.c')
-rw-r--r-- | src/crystfelsymmetryselector.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/crystfelsymmetryselector.c b/src/crystfelsymmetryselector.c index e8b1d0d6..219e4da6 100644 --- a/src/crystfelsymmetryselector.c +++ b/src/crystfelsymmetryselector.c @@ -81,6 +81,8 @@ char *crystfel_symmetry_selector_get_group_symbol(CrystFELSymmetrySelector *sel) int crystfel_symmetry_selector_set_group_symbol(CrystFELSymmetrySelector *sel, const char *pg_symbol) { - gtk_entry_set_text(GTK_ENTRY(sel->entry), pg_symbol); + if ( pg_symbol != NULL ) { + gtk_entry_set_text(GTK_ENTRY(sel->entry), pg_symbol); + } return 0; } |