svg_group - check parent is not nullptr
This commit is contained in:
parent
6e81004cfb
commit
77cd733258
1 changed files with 5 additions and 1 deletions
|
@ -73,7 +73,11 @@ class svg_converter : util::noncopyable
|
|||
current_group_ = ¤t_group_->elements.back().get<group>();
|
||||
}
|
||||
|
||||
void end_group() { current_group_ = current_group_->parent; }
|
||||
void end_group()
|
||||
{
|
||||
if (current_group_->parent != nullptr)
|
||||
current_group_ = current_group_->parent;
|
||||
}
|
||||
|
||||
void begin_path()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue