Fixed segmentation fault when copying textbox
This commit is contained in:
parent
79f7135746
commit
f0f289d785
13 changed files with 27 additions and 25 deletions
|
|
@ -27,14 +27,14 @@ void DrawEllipse::load_file(cereal::PortableBinaryInputArchive& a, VersionNumber
|
|||
}
|
||||
|
||||
#ifndef IS_SERVER
|
||||
std::shared_ptr<DrawComponent> DrawEllipse::copy() const {
|
||||
std::shared_ptr<DrawComponent> DrawEllipse::copy(DrawingProgram& drawP) const {
|
||||
auto a = std::make_shared<DrawEllipse>();
|
||||
a->d = d;
|
||||
a->coords = coords;
|
||||
return a;
|
||||
}
|
||||
|
||||
std::shared_ptr<DrawComponent> DrawEllipse::deep_copy() const {
|
||||
std::shared_ptr<DrawComponent> DrawEllipse::deep_copy(DrawingProgram& drawP) const {
|
||||
auto a = std::make_shared<DrawEllipse>();
|
||||
a->d = d;
|
||||
a->coords = coords;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue