Skip to content

Commit

Permalink
Initialize SvgFile object in optional different way.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jony01 committed Jan 15, 2024
1 parent 6bd9c50 commit 0ff255e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/slic3r/GUI/Gizmos/GLGizmoSVG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1490,8 +1490,9 @@ void GLGizmoSVG::draw_filename(){
std::string new_path = choose_svg_file();
if (!new_path.empty()) {
file_changed = true;
m_volume_shape.svg_file = {}; // clear data
m_volume_shape.svg_file->path = new_path;
EmbossShape::SvgFile svg_file_new;
svg_file_new.path = new_path;
m_volume_shape.svg_file = svg_file_new; // clear data
}
} else if (ImGui::IsItemHovered()) {
ImGui::SetTooltip("%s", _u8L("Change to another .svg file").c_str());
Expand Down

0 comments on commit 0ff255e

Please sign in to comment.