Fixed segmentation fault when copying textbox

This commit is contained in:
Yousef Khadadeh 2025-11-16 16:49:47 +03:00
parent 79f7135746
commit f0f289d785
13 changed files with 27 additions and 25 deletions

View file

@ -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;