From d18a200b0f9982987443d0b0bcbe55ce1e0c26b5 Mon Sep 17 00:00:00 2001
From: YuSanka <yusanka@gmail.com>
Date: Fri, 9 Feb 2018 12:07:59 +0100
Subject: [PATCH] Fix biuld on Linux a OSX

---
 xs/src/slic3r/GUI/BedShapeDialog.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xs/src/slic3r/GUI/BedShapeDialog.cpp b/xs/src/slic3r/GUI/BedShapeDialog.cpp
index 35238654e..5ee0c1f8b 100644
--- a/xs/src/slic3r/GUI/BedShapeDialog.cpp
+++ b/xs/src/slic3r/GUI/BedShapeDialog.cpp
@@ -312,7 +312,7 @@ void BedShapePanel::load_stl()
 		model = Model::read_from_file(file_name);
 	}
 	catch (std::exception &e) {
-		std::string msg = _L("Error! ") + file_name + " : " + e.what() + ".";
+		auto msg = _L("Error! ") + file_name + " : " + e.what() + ".";
 		show_error(this, msg);
 		exit(1);
 	}