Changes in wxWidgets.cmake to support of the updated wxWidgets v3.2.0-patched

+ ObjectList: Deleted code, which is no needed after update of wxWidgets
This commit is contained in:
YuSanka 2022-10-26 17:36:57 +02:00
parent 9b0a69e50e
commit dd8234512b
2 changed files with 3 additions and 13 deletions
src/slic3r/GUI

View file

@ -2522,17 +2522,7 @@ bool ObjectList::can_merge_to_single_object() const
wxPoint ObjectList::get_mouse_position_in_control() const
{
wxPoint pt = wxGetMousePosition() - this->GetScreenPosition();
#ifdef __APPLE__
// Workaround for OSX. From wxWidgets 3.1.6 Hittest doesn't respect to the header of wxDataViewCtrl
if (wxDataViewItem top_item = this->GetTopItem(); top_item.IsOk()) {
auto rect = this->GetItemRect(top_item, this->GetColumn(0));
pt.y -= rect.y;
}
#endif // __APPLE__
return pt;
return wxGetMousePosition() - this->GetScreenPosition();
}
// NO_PARAMETERS function call means that changed object index will be determine from Selection()