diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-18 04:18:31 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-18 04:18:31 (EDT) |
commit | 864f0056127bd2e70aaf9537592f3128f50d63c5 (patch) | |
tree | f3e899c4aaff45401b19bb0fb4ffb7543fe0882c | |
parent | c3c52143324ff347dd9b0b989e6602543f519ea8 (diff) | |
download | marquee-864f0056127bd2e70aaf9537592f3128f50d63c5.zip marquee-864f0056127bd2e70aaf9537592f3128f50d63c5.tar.gz marquee-864f0056127bd2e70aaf9537592f3128f50d63c5.tar.bz2 |
mq_tab_page_update_positions(): Assert existence of each node's MqTabLabel
-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) { |