From 864f0056127bd2e70aaf9537592f3128f50d63c5 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 18 Oct 2017 04:18:31 -0400 Subject: mq_tab_page_update_positions(): Assert existence of each node's MqTabLabel --- 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) { -- cgit v0.9.1