1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-12 08:14:26 +00:00

Fixed a crash on copy/paste, when ObjectList has no selection. Related to #5517

This commit is contained in:
YuSanka
2020-12-22 10:42:47 +01:00
parent ea327c2d8c
commit 6c399052c6
+2
View File
@@ -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();