mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Try to understand OSX crashing on context menu
This commit is contained in:
parent
5557e59d43
commit
a56ea9a616
3 changed files with 9 additions and 5 deletions
|
@ -782,9 +782,14 @@ void object_ctrl_context_menu()
|
|||
{
|
||||
wxDataViewItem item;
|
||||
wxDataViewColumn* col;
|
||||
m_objects_ctrl->HitTest(get_mouse_position_in_control(), item, col);
|
||||
wxString title = col->GetTitle();
|
||||
printf("object_ctrl_context_menu\n");
|
||||
const wxPoint pt = get_mouse_position_in_control();
|
||||
printf("mouse_position_in_control: x = %d, y = %d\n", pt.x, pt.y);
|
||||
m_objects_ctrl->HitTest(pt, item, col);
|
||||
if (!item) return;
|
||||
printf("item exists\n");
|
||||
const wxString title = col->GetTitle();
|
||||
printf("title = *%s*\n", title.data().AsChar());
|
||||
|
||||
if (title == " ")
|
||||
show_context_menu();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue