summaryrefslogtreecommitdiff
path: root/fluid
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-01-12 14:38:11 +0100
committerMatthias Melcher <github@matthiasm.com>2023-01-12 14:38:11 +0100
commit76a5c7b081361c2588c53253db374de5dd825cf9 (patch)
tree2a1308d4f63947c67a827ca02912b42a4bc6ae9d /fluid
parentb375d07d32749ca0afdc508f4f7de9a87c8de573 (diff)
FLUID: Fix wrong use of `Fl_Scroll::position()`
Diffstat (limited to 'fluid')
-rw-r--r--fluid/Fl_Group_Type.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/fluid/Fl_Group_Type.cxx b/fluid/Fl_Group_Type.cxx
index 68f33d49d..21ab550de 100644
--- a/fluid/Fl_Group_Type.cxx
+++ b/fluid/Fl_Group_Type.cxx
@@ -658,8 +658,8 @@ Fl_Scroll_Type Fl_Scroll_type; // the "factory"
void Fl_Scroll_Type::copy_properties() {
Fl_Group_Type::copy_properties();
Fl_Scroll *s = (Fl_Scroll*)o, *d = (Fl_Scroll*)live_widget;
- d->position(s->xposition(), s->yposition());
- d->type(s->type()); // TODO: get this flag from Fl_Scroll_Type!
+ d->scroll_to(s->xposition(), s->yposition());
+ d->type(s->type());
d->scrollbar.align(s->scrollbar.align());
d->hscrollbar.align(s->hscrollbar.align());
}