From 1aa6c4fed823e74ded911a134065e2619ad53bf1 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 2 Feb 2023 20:54:19 +0100 Subject: Fix position() methods that shadow Fl_Widget::position() * `FL_DEPRECATED` macro to mark `position()` method that shadow `Fl_Widget::position()` #69 (#666) --- test/input.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/input.cxx') diff --git a/test/input.cxx b/test/input.cxx index 2b6e15c06..70c47c852 100644 --- a/test/input.cxx +++ b/test/input.cxx @@ -49,7 +49,7 @@ void test(Fl_Input *i) { if (i->changed()) { i->clear_changed(); G_tty->printf("%s '%s'\n",i->label(),i->value()); char utf8buf[10]; - int last = fl_utf8encode(i->index(i->position()), utf8buf); + int last = fl_utf8encode(i->index(i->insert_position()), utf8buf); utf8buf[last] = 0; G_tty->printf("Symbol at cursor position: %s\n", utf8buf); } -- cgit v1.2.3