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

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2018-09-18 11:09:58 +0300
committerbubnikv <bubnikv@gmail.com>2018-09-18 11:09:58 +0300
commit3ddaccb6410478ad02d8c0e02d6d8e6eb1785b9f (patch)
tree97e9b632bdd5abc546d951771f144fe5b1d6ac73 /xs/src/libslic3r/Polyline.cpp
parent27bba453312d59898f773aa54d7b625e65fc501e (diff)
Replaced CONFESS with throw std::exception in libslic3r, so now
libslic3r should be compilable without Perl.
Diffstat (limited to 'xs/src/libslic3r/Polyline.cpp')
-rw-r--r--xs/src/libslic3r/Polyline.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/xs/src/libslic3r/Polyline.cpp b/xs/src/libslic3r/Polyline.cpp
index e0cd5221c..af155468a 100644
--- a/xs/src/libslic3r/Polyline.cpp
+++ b/xs/src/libslic3r/Polyline.cpp
@@ -18,7 +18,8 @@ Polyline::operator Polylines() const
Polyline::operator Line() const
{
- if (this->points.size() > 2) CONFESS("Can't convert polyline with more than two points to a line");
+ if (this->points.size() > 2)
+ throw std::invalid_argument("Can't convert polyline with more than two points to a line");
return Line(this->points.front(), this->points.back());
}