95 // Reinterpret it from the text of the input field |
95 // Reinterpret it from the text of the input field |
96 obj = parseLine (dlg.qContents->text ().toStdString ().c_str ()); |
96 obj = parseLine (dlg.qContents->text ().toStdString ().c_str ()); |
97 |
97 |
98 // Mark down the history now before we perform the replacement (which |
98 // Mark down the history now before we perform the replacement (which |
99 // destroys the old object) |
99 // destroys the old object) |
100 History::addEntry (new EditHistory ({oldobj->getIndex (g_CurrentFile)}, |
100 History::addEntry (new EditHistory ({(ulong) oldobj->getIndex (g_CurrentFile)}, |
101 {oldobj->clone ()}, {obj->clone ()})); |
101 {oldobj->clone ()}, {obj->clone ()})); |
102 |
102 |
103 oldobj->replace (obj); |
103 oldobj->replace (obj); |
104 |
104 |
105 // Rebuild stuff after this |
105 // Rebuild stuff after this |