Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2018-02-02 13:32:32 +0300
committerbubnikv <bubnikv@gmail.com>2018-02-02 13:32:32 +0300
commit36bbd6a73fdcb4d7b817674b6c827eda299fae6b (patch)
treea5935eae21dc6b9c2bba4c69da5a69eb9bd4c28c
parent4f427f83876090cc970df17dce740084dd3520d9 (diff)
Fix of https://github.com/prusa3d/Slic3r/issues/696
-rw-r--r--xs/xsp/GUI_Preset.xsp4
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; %};