Fixed segmentation fault when copying textbox
This commit is contained in:
parent
79f7135746
commit
f0f289d785
13 changed files with 27 additions and 25 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue