Commit 80f17044 authored by cec m's avatar cec m
Browse files

fix crash in register when no sequence is loaded

(cherry picked from commit c0def358)
parent 4cca8973
Pipeline #544616288 passed with stages
in 21 minutes and 53 seconds
......@@ -615,7 +615,7 @@ static void draw_stars(const draw_data_t* dd) {
cairo_t *cr = dd->cr;
int i = 0;
if (com.stars && !com.script) {
if (com.stars && !com.script && (single_image_is_loaded() || sequence_is_loaded())) {
/* com.stars is a NULL-terminated array */
cairo_set_dash(cr, NULL, 0, 0);
cairo_set_source_rgba(cr, 1.0, 0.4, 0.0, 0.9);
......
......@@ -1040,7 +1040,7 @@ static gboolean end_register_idle(gpointer p) {
stop_processing_thread();
if (!args->retval) {
if (!args->load_new_sequence) {
if (!args->load_new_sequence && sequence_is_loaded()) {
int chan = gtk_combo_box_get_active(GTK_COMBO_BOX(lookup_widget("comboboxreglayer")));
update_seqlist(chan);
fill_sequence_list(args->seq, chan, FALSE);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment