From e358dc7ddd3e3fbf61b43c8a03786b940e1d5c1b Mon Sep 17 00:00:00 2001 From: leo Date: Sat, 17 Jan 2015 20:17:35 +0000 Subject: [PATCH] Select pasted pieces. --- common/lc_model.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/lc_model.cpp b/common/lc_model.cpp index e88eb000..ce436324 100644 --- a/common/lc_model.cpp +++ b/common/lc_model.cpp @@ -873,9 +873,13 @@ void lcModel::Paste() Buffer.open(QIODevice::ReadOnly); Model->LoadLDraw(Buffer); + lcArray PastedPieces = Model->mPieces; + Merge(Model); SaveCheckpoint(tr("Pasting")); + SetSelection((lcArray&)PastedPieces); + CalculateStep(mCurrentStep); gMainWindow->UpdateAllViews(); }