Fixed crash pasting.
This commit is contained in:
+4
-2
@@ -12,6 +12,9 @@
|
||||
*.suo
|
||||
*.vspx
|
||||
*.xcodeproj
|
||||
*.qm
|
||||
*.ldr
|
||||
*.dat
|
||||
build
|
||||
debug
|
||||
release
|
||||
@@ -19,5 +22,4 @@ ipch
|
||||
Makefile
|
||||
library.bin
|
||||
leocad_plugin_import.cpp
|
||||
*.qm
|
||||
/uic_wrapper.bat
|
||||
uic_wrapper.bat
|
||||
|
||||
+2
-2
@@ -1031,8 +1031,8 @@ void lcModel::Paste()
|
||||
Merge(Model);
|
||||
SaveCheckpoint(tr("Pasting"));
|
||||
|
||||
if (PastedPieces.GetSize() == 1)
|
||||
ClearSelectionAndSetFocus(PastedPieces[0], LC_PIECE_SECTION_POSITION);
|
||||
if (SelectedObjects.GetSize() == 1)
|
||||
ClearSelectionAndSetFocus(SelectedObjects[0], LC_PIECE_SECTION_POSITION);
|
||||
else
|
||||
SetSelectionAndFocus(SelectedObjects, NULL, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user