Fix #10880: Crash in object window due to incorrect parameter order. (#10881)

pull/564/head
PeterN 1 year ago committed by GitHub
parent 876871157f
commit 8ea9c1a133
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -506,7 +506,7 @@ public:
{
switch (GB(widget, 0, 16)) {
case WID_BO_CLASS_LIST: {
auto it = this->vscroll->GetScrolledItemFromWidget(this->object_classes, widget, this, pt.y);
auto it = this->vscroll->GetScrolledItemFromWidget(this->object_classes, pt.y, this, widget);
if (it == this->object_classes.end()) break;
this->SelectOtherClass(*it);

Loading…
Cancel
Save