svg_group - check parent is not nullptr

This commit is contained in:
Artem Pavlenko 2024-04-30 09:59:35 +01:00
parent 6e81004cfb
commit 77cd733258

View file

@ -73,7 +73,11 @@ class svg_converter : util::noncopyable
current_group_ = &current_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()
{