mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-11 23:29:04 +08:00
Fixed a crash on copy/paste, when ObjectList has no selection. Related to #5517
This commit is contained in:
parent
ea327c2d8c
commit
6c399052c6
@ -1070,6 +1070,8 @@ bool ObjectList::copy_to_clipboard()
|
||||
{
|
||||
wxDataViewItemArray sels;
|
||||
GetSelections(sels);
|
||||
if (sels.IsEmpty())
|
||||
return false;
|
||||
ItemType type = m_objects_model->GetItemType(sels.front());
|
||||
if (!(type & (itSettings | itLayer | itLayerRoot))) {
|
||||
m_clipboard.reset();
|
||||
|
Loading…
x
Reference in New Issue
Block a user