Browse Source

Merge branch 'fs_fix_SPE-2064' into master_27x

Filip Sykala - NTB T15p 1 year ago
parent
commit
d703a02f40
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/slic3r/GUI/Gizmos/GLGizmoSVG.cpp

+ 3 - 2
src/slic3r/GUI/Gizmos/GLGizmoSVG.cpp

@@ -1498,8 +1498,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());