From e77111bf9891df61abbd1130d5aa8165a52a9058 Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Tue, 13 Feb 2018 10:25:55 +0100 Subject: [PATCH] Fixed crash when importing .prusa files --- xs/src/libslic3r/Format/PRUS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xs/src/libslic3r/Format/PRUS.cpp b/xs/src/libslic3r/Format/PRUS.cpp index b7ef33774..1809eaead 100644 --- a/xs/src/libslic3r/Format/PRUS.cpp +++ b/xs/src/libslic3r/Format/PRUS.cpp @@ -148,7 +148,7 @@ bool load_prus(const char *path, Model *model) if (scene_xml_data.size() < size_last + size_incr) scene_xml_data.resize(size_last + size_incr); } - size_last += size_last + zip.LastRead(); + size_last += zip.LastRead(); if (scene_xml_data.size() == size_last) scene_xml_data.resize(size_last + 1); else if (scene_xml_data.size() > size_last + 1)