mirror of
https://github.com/leozide/leocad
synced 2024-11-16 07:47:27 +01:00
Fixed crash pasting.
This commit is contained in:
parent
38be0becb3
commit
fcf4b24d84
2 changed files with 6 additions and 4 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue