src/canvas.cpp

changeset 1240
cebb7ef54f41
parent 1184
393babf1319d
child 1257
0d42a1ebd954
equal deleted inserted replaced
1239:f1cf9d2d463a 1240:cebb7ef54f41
257 PrimitiveTreeItem* item = static_cast<PrimitiveTreeItem*> (m_window->getPrimitivesTree()->currentItem()); 257 PrimitiveTreeItem* item = static_cast<PrimitiveTreeItem*> (m_window->getPrimitivesTree()->currentItem());
258 QString primitiveName = item->primitive()->name; 258 QString primitiveName = item->primitive()->name;
259 LDSubfileReference* reference = currentDocument()->emplaceAt<LDSubfileReference>(m_window->suggestInsertPoint()); 259 LDSubfileReference* reference = currentDocument()->emplaceAt<LDSubfileReference>(m_window->suggestInsertPoint());
260 reference->setFileInfo (m_documents->getDocumentByName(primitiveName)); 260 reference->setFileInfo (m_documents->getDocumentByName(primitiveName));
261 currentDocument()->addToSelection(reference); 261 currentDocument()->addToSelection(reference);
262 m_window->buildObjectList();
263 update(); 262 update();
264 event->acceptProposedAction(); 263 event->acceptProposedAction();
265 } 264 }
266 } 265 }
267 266

mercurial