diff --git a/include/segment.hpp b/include/segment.hpp
index df02531cb9d7be847c57bda4a1ac2596077a81d5..968aee34b73168318b55429304afdc663f9621ba 100644
--- a/include/segment.hpp
+++ b/include/segment.hpp
@@ -10,7 +10,7 @@ public:
 
 	void save(std::string filename) const;
 	bool save_sc(std::string filename, int reps) const;
-	bool get_autocad_script(int reps) const;
+	std::string get_autocad_script(int reps) const;
 	void move_to(size_t i, const std::array<float, 2> pos);
 	void insert(size_t i, const std::array<float, 2> pos);
 	const std::vector<std::array<float, 2> >& nodes() const;