Skip to content

[wxListCtrl] HitTest creates a MAV #45

@HenriVi

Description

@HenriVi

Hi,

using HitTest method creates a MAV. This due to using long& instead of long int*.

Fix:

Edit: glue.h

Change

int bmx_wxlistctrl_hittest(wxListCtrl * list, int x, int y, int * flags, int * subitem);

to..

int bmx_wxlistctrl_hittest(wxListCtrl * list, int x, int y, int * flags, long int * subitem);

Edit: glue.cc

Change:

int bmx_wxlistctrl_hittest(wxListCtrl * list, int x, int y, int * flags, long int * subitem) {
	long s;
	int res = list->HitTest(wxPoint(x, y), *flags, &s);
	*subitem = s;
}

to..

int bmx_wxlistctrl_hittest(wxListCtrl * list, int x, int y, int * flags, long int * subitem) {
	return list->HitTest(wxPoint(x, y), *flags, subitem);
}

-Henri

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions