diff options
-rw-r--r-- | src/tab-page.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/tab-page.c b/src/tab-page.c index 34a5d77..19f1e2b 100644 --- a/src/tab-page.c +++ b/src/tab-page.c @@ -385,10 +385,9 @@ mq_tab_page_update_positions(MqTabPage *node, gint step) { if (node) { node->position += step; - if (node->label) { - mq_tab_label_set_position(MQ_TAB_LABEL(node->label), - node->position); - } + g_assert(node->label); + mq_tab_label_set_position(MQ_TAB_LABEL(node->label), + node->position); if (node->next) { mq_tab_page_update_positions(node->next, step); } else if (node->parent && node->parent->next) { |