mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-25 06:24:25 +08:00
Fixed the new Slic3r::GUI::format_wxstr(): The arguments were not passed.
This commit is contained in:
parent
4945a0dc0e
commit
f4cc0ce075
@ -25,11 +25,11 @@ inline wxString format_wxstr(const std::string& fmt, TArgs&&... args) {
|
||||
}
|
||||
template<typename... TArgs>
|
||||
inline wxString format_wxstr(const wxString& fmt, TArgs&&... args) {
|
||||
return format_wxstr(fmt.ToUTF8().data());
|
||||
return format_wxstr(fmt.ToUTF8().data(), std::forward<TArgs>(args)...);
|
||||
}
|
||||
template<typename... TArgs>
|
||||
inline std::string format(const wxString& fmt, TArgs&&... args) {
|
||||
return format(fmt.ToUTF8().data());
|
||||
return format(fmt.ToUTF8().data(), std::forward<TArgs>(args)...);
|
||||
}
|
||||
|
||||
} // namespace GUI
|
||||
|
Loading…
x
Reference in New Issue
Block a user