Added component edit undo/redo
This commit is contained in:
parent
279801623d
commit
1400033bd0
7 changed files with 50 additions and 1 deletions
|
|
@ -61,6 +61,7 @@ void TextBoxCanvasComponent::load_file(cereal::PortableBinaryInputArchive& a, Ve
|
|||
std::unique_ptr<CanvasComponent> TextBoxCanvasComponent::get_data_copy() const {
|
||||
auto toRet = std::make_unique<TextBoxCanvasComponent>();
|
||||
toRet->d = d;
|
||||
toRet->d.editing = false;
|
||||
*toRet->cursor = *cursor;
|
||||
toRet->textBox->set_rich_text_data(textBox->get_rich_text_data());
|
||||
return toRet;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue