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

@ -37,14 +37,14 @@ DrawComponentType DrawBrushStroke::get_type() const {
#ifndef IS_SERVER
std::shared_ptr<DrawComponent> DrawBrushStroke::copy() const {
std::shared_ptr<DrawComponent> DrawBrushStroke::copy(DrawingProgram& drawP) const {
auto a = std::make_shared<DrawBrushStroke>();
a->d = d;
a->coords = coords;
return a;
}
std::shared_ptr<DrawComponent> DrawBrushStroke::deep_copy() const {
std::shared_ptr<DrawComponent> DrawBrushStroke::deep_copy(DrawingProgram& drawP) const {
auto a = std::make_shared<DrawBrushStroke>();
a->d = d;
a->coords = coords;