diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-02-02 20:54:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-02 20:54:19 +0100 |
| commit | 1aa6c4fed823e74ded911a134065e2619ad53bf1 (patch) | |
| tree | 239e65b0af1a1a39012b4187894274e860350235 /test/input.cxx | |
| parent | 59d3b2e9fd10bdf14592e82ced422346ecd7204e (diff) | |
Fix position() methods that shadow Fl_Widget::position()
* `FL_DEPRECATED` macro to mark `position()` method that shadow `Fl_Widget::position()` #69 (#666)
Diffstat (limited to 'test/input.cxx')
| -rw-r--r-- | test/input.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |
