mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-09-21 03:03:13 +08:00
FIX:load_svg api should check svg file type
jira: none Change-Id: Ie19b31bcf32bcc3db7a2d7beb3bc969d00e079a0
This commit is contained in:
parent
aaac0057de
commit
dac5e52a6a
@ -10464,6 +10464,9 @@ bool Plater::load_svg(const wxArrayString &filenames, bool from_toolbar_or_file_
|
|||||||
deselect_all();
|
deselect_all();
|
||||||
}
|
}
|
||||||
wxArrayString temp_filenames;
|
wxArrayString temp_filenames;
|
||||||
|
if (!boost::iends_with(filenames[i].ToStdString(), ".svg")) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
temp_filenames.push_back(filenames[i]);
|
temp_filenames.push_back(filenames[i]);
|
||||||
const auto dlg_info = _L("Loading file") + ": " + filenames[i];
|
const auto dlg_info = _L("Loading file") + ": " + filenames[i];
|
||||||
int progress_percent = static_cast<int>(100.0f * static_cast<float>(i) / static_cast<float>(filenames.size()));
|
int progress_percent = static_cast<int>(100.0f * static_cast<float>(i) / static_cast<float>(filenames.size()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user