diff --git a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp index 28c8c26f2..74be45ddc 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp @@ -34,6 +34,7 @@ #endif // apple #ifdef __linux__ +#include #include #endif // __linux__ @@ -165,7 +166,7 @@ public: // File exists and is accessible wxString fullFileName = myFileName.GetFullPath(); - return fullFileName.c_str(); + return std::string(fullFileName.c_str()); } }; #endif // __linux__