ENH:Optimize SVG import failure pop-up window
jira: STUDIO-10585 Change-Id: I5b41d9aea1a8900e48b0a2a2a3785cd73b5b1856
This commit is contained in:
parent
64652b1693
commit
15560894e7
|
@ -165,7 +165,7 @@ EmbossShape select_shape(std::string_view filepath, double tesselation_tolerance
|
|||
|
||||
// Must contain some shapes !!!
|
||||
if (shape.shapes_with_ids.empty()) {
|
||||
show_error(nullptr, GUI::format(_u8L("SVG file does NOT contain a single path to be embossed (%1%)."), svg.path));
|
||||
show_error(nullptr, GUI::format(_u8L("%1% contains some unsupported data. Please use third-party software to convert the SVG to path data before reimporting."), svg.path));
|
||||
return {};
|
||||
}
|
||||
shape.svg_file = std::move(svg);
|
||||
|
|
|
@ -12470,7 +12470,8 @@ bool Plater::load_svg(const wxArrayString &filenames, bool from_toolbar_or_file_
|
|||
const wxString &filename = filenames[0];
|
||||
if (boost::iends_with(filenames[0].ToStdString(), ".svg")) {
|
||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << "," << __FILE__ << filename;
|
||||
return emboss_svg(filename, from_toolbar_or_file_menu);
|
||||
emboss_svg(filename, from_toolbar_or_file_menu);
|
||||
return true;
|
||||
} else {
|
||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << "," << __FILE__ << ",fail:" << filename;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue