891 // ----------------------------------------------------------------------------- |
891 // ----------------------------------------------------------------------------- |
892 void LDDocument::insertObj (int pos, LDObject* obj) |
892 void LDDocument::insertObj (int pos, LDObject* obj) |
893 { getHistory()->add (new AddHistory (pos, obj)); |
893 { getHistory()->add (new AddHistory (pos, obj)); |
894 m_Objects.insert (pos, obj); |
894 m_Objects.insert (pos, obj); |
895 obj->setFile (this); |
895 obj->setFile (this); |
|
896 |
|
897 #ifdef DEBUG |
|
898 if (!isImplicit()) |
|
899 dlog ("Inserted object #%1 (%2) at %3\n", obj->getID(), obj->getTypeName(), pos); |
|
900 #endif |
896 } |
901 } |
897 |
902 |
898 // ============================================================================= |
903 // ============================================================================= |
899 // ----------------------------------------------------------------------------- |
904 // ----------------------------------------------------------------------------- |
900 void LDDocument::forgetObject (LDObject* obj) |
905 void LDDocument::forgetObject (LDObject* obj) |