diff options
author | bubnikv <bubnikv@gmail.com> | 2018-02-02 13:32:32 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2018-02-02 13:32:32 +0300 |
commit | 36bbd6a73fdcb4d7b817674b6c827eda299fae6b (patch) | |
tree | a5935eae21dc6b9c2bba4c69da5a69eb9bd4c28c | |
parent | 4f427f83876090cc970df17dce740084dd3520d9 (diff) |
Fix of https://github.com/prusa3d/Slic3r/issues/696
-rw-r--r-- | xs/xsp/GUI_Preset.xsp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xs/xsp/GUI_Preset.xsp b/xs/xsp/GUI_Preset.xsp index 67e1d5fc6..0033ebd0e 100644 --- a/xs/xsp/GUI_Preset.xsp +++ b/xs/xsp/GUI_Preset.xsp @@ -18,8 +18,8 @@ bool is_compatible_with_printer(Preset *active_printer) %code%{ RETVAL = THIS->is_compatible_with_printer(*active_printer); %}; - const char* name() %code%{ RETVAL = THIS->name.c_str(); %}; - const char* file() %code%{ RETVAL = THIS->file.c_str(); %}; + std::string name() %code%{ RETVAL = THIS->name; %}; + std::string file() %code%{ RETVAL = THIS->file; %}; bool loaded() %code%{ RETVAL = THIS->loaded; %}; |