[gtk/4.0-backports: 39/53] textbtree: Avoid line vs char count confusion
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/4.0-backports: 39/53] textbtree: Avoid line vs char count confusion
- Date: Sun, 7 Feb 2021 17:49:41 +0000 (UTC)
commit 85b98cb177686fdf1e24c93357f305982e990c7f
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Feb 4 00:17:55 2021 -0500
textbtree: Avoid line vs char count confusion
The post_insert_fixup helper function was confused about
its argument order.
Pointed out in https://www.viva64.com/en/b/0793/
gtk/gtktextbtree.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtktextbtree.c b/gtk/gtktextbtree.c
index 3714b6a7e3..5f87ae70ad 100644
--- a/gtk/gtktextbtree.c
+++ b/gtk/gtktextbtree.c
@@ -257,8 +257,8 @@ static void gtk_text_btree_rebalance (GtkTextBTree
static GtkTextLine * get_last_line (GtkTextBTree *tree);
static void post_insert_fixup (GtkTextBTree *tree,
GtkTextLine *insert_line,
- int char_count_delta,
- int line_count_delta);
+ int line_count_delta,
+ int char_count_delta);
static void gtk_text_btree_node_adjust_toggle_count (GtkTextBTreeNode *node,
GtkTextTagInfo *info,
int adjust);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]