fix : call make_shared
This commit is contained in:
parent
3dbe3644d8
commit
eadd8b0297
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ void text_layout::add_child(text_layout_ptr const& child_layout)
|
|||
|
||||
evaluated_format_properties_ptr & text_layout::new_child_format_ptr(evaluated_format_properties_ptr const& p)
|
||||
{
|
||||
format_ptrs_.emplace_back(std::make_unique<detail::evaluated_format_properties>(*p));
|
||||
format_ptrs_.emplace_back(std::make_shared<detail::evaluated_format_properties>(*p));
|
||||
return format_ptrs_.back();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue