mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-16 11:35:54 +08:00
Added stdexcept include, convert VAR_ABS_PATH and VAR_REL to wxStrings.
This commit is contained in:
parent
c0d8e68606
commit
47354beacc
@ -3,6 +3,7 @@
|
|||||||
#include <wx/msgdlg.h>
|
#include <wx/msgdlg.h>
|
||||||
|
|
||||||
#include <exception>
|
#include <exception>
|
||||||
|
#include <stdexcept>
|
||||||
|
|
||||||
namespace Slic3r { namespace GUI {
|
namespace Slic3r { namespace GUI {
|
||||||
|
|
||||||
@ -19,9 +20,9 @@ void check_version(bool manual) {
|
|||||||
const wxString var(const wxString& in) {
|
const wxString var(const wxString& in) {
|
||||||
// TODO replace center string with path to VAR in actual distribution later
|
// TODO replace center string with path to VAR in actual distribution later
|
||||||
if (VAR_ABS) {
|
if (VAR_ABS) {
|
||||||
return VAR_ABS_PATH + "/" + in;
|
return wxString(VAR_ABS_PATH) + "/" + in;
|
||||||
} else {
|
} else {
|
||||||
return bin() + VAR_REL + "/" + in;
|
return bin() + wxString(VAR_REL) + "/" + in;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user