Skip to content

Commit 260e2e1

Browse files
zhimin-zeng-bambulablanewei120
authored andcommitted
FIX: modify svg display position
Change-Id: Ie824d457fcac93918244a6491e821dc43e7e1d9f
1 parent 458ff13 commit 260e2e1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/slic3r/GUI/GUI_App.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ static const FileWildcards file_wildcards_by_type[FT_SIZE] = {
729729
/* FT_AMF */ { "AMF files"sv, { ".amf"sv, ".zip.amf"sv, ".xml"sv } },
730730
/* FT_3MF */ { "3MF files"sv, { ".3mf"sv } },
731731
/* FT_GCODE */ { "G-code files"sv, { ".gcode"sv } },
732-
/* FT_MODEL */ {"Supported files"sv, {".3mf"sv, ".stl"sv, ".stp"sv, ".step"sv, ".amf"sv, ".obj"sv, ".svg"sv }},
732+
/* FT_MODEL */ {"Supported files"sv, {".3mf"sv, ".stl"sv, ".stp"sv, ".step"sv, ".svg"sv, ".amf"sv, ".obj"sv }},
733733
/* FT_PROJECT */ { "Project files"sv, { ".3mf"sv} },
734734
/* FT_GALLERY */ { "Known files"sv, { ".stl"sv, ".obj"sv } },
735735

@@ -3219,7 +3219,7 @@ void GUI_App::import_model(wxWindow *parent, wxArrayString& input_files) const
32193219
{
32203220
input_files.Clear();
32213221
wxFileDialog dialog(parent ? parent : GetTopWindow(),
3222-
_L("Choose one or more files (3mf/step/stl/obj/amf):"),
3222+
_L("Choose one or more files (3mf/step/stl/svg/obj/amf):"),
32233223
from_u8(app_config->get_last_dir()), "",
32243224
file_wildcards(FT_MODEL), wxFD_OPEN | wxFD_MULTIPLE | wxFD_FILE_MUST_EXIST);
32253225

src/slic3r/GUI/MainFrame.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -2049,13 +2049,13 @@ void MainFrame::init_menubar_as_editor()
20492049
// BBS
20502050
wxMenu *import_menu = new wxMenu();
20512051
#ifndef __APPLE__
2052-
append_menu_item(import_menu, wxID_ANY, _L("Import 3MF/STL/STEP/OBJ/AMF") + dots + "\tCtrl+I", _L("Load a model"),
2052+
append_menu_item(import_menu, wxID_ANY, _L("Import 3MF/STL/STEP/SVG/OBJ/AMF") + dots + "\tCtrl+I", _L("Load a model"),
20532053
[this](wxCommandEvent&) { if (m_plater) {
20542054
m_plater->add_file();
20552055
} }, "menu_import", nullptr,
20562056
[this](){return can_add_models(); }, this);
20572057
#else
2058-
append_menu_item(import_menu, wxID_ANY, _L("Import 3MF/STL/STEP/OBJ/AMF") + dots + "\tCtrl+I", _L("Load a model"),
2058+
append_menu_item(import_menu, wxID_ANY, _L("Import 3MF/STL/STEP/SVG/OBJ/AMF") + dots + "\tCtrl+I", _L("Load a model"),
20592059
[this](wxCommandEvent&) { if (m_plater) { m_plater->add_model(); } }, "", nullptr,
20602060
[this](){return can_add_models(); }, this);
20612061
#endif

0 commit comments

Comments
 (0)