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:
Diffstat (limited to 'xs/src/libslic3r/PrintObject.cpp')
-rw-r--r--xs/src/libslic3r/PrintObject.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/xs/src/libslic3r/PrintObject.cpp b/xs/src/libslic3r/PrintObject.cpp
index 9bf74bee7..475a320bf 100644
--- a/xs/src/libslic3r/PrintObject.cpp
+++ b/xs/src/libslic3r/PrintObject.cpp
@@ -1253,7 +1253,8 @@ void PrintObject::_slice()
goto end;
delete layer;
this->layers.pop_back();
- this->layers.back()->upper_layer = nullptr;
+ if (! this->layers.empty())
+ this->layers.back()->upper_layer = nullptr;
}
end:
;