diff options
author | bubnikv <bubnikv@gmail.com> | 2018-09-18 11:09:58 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2018-09-18 11:09:58 +0300 |
commit | 3ddaccb6410478ad02d8c0e02d6d8e6eb1785b9f (patch) | |
tree | 97e9b632bdd5abc546d951771f144fe5b1d6ac73 /xs/src/libslic3r/Print.cpp | |
parent | 27bba453312d59898f773aa54d7b625e65fc501e (diff) |
Replaced CONFESS with throw std::exception in libslic3r, so now
libslic3r should be compilable without Perl.
Diffstat (limited to 'xs/src/libslic3r/Print.cpp')
-rw-r--r-- | xs/src/libslic3r/Print.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xs/src/libslic3r/Print.cpp b/xs/src/libslic3r/Print.cpp index 85634d1bb..f8f6537ca 100644 --- a/xs/src/libslic3r/Print.cpp +++ b/xs/src/libslic3r/Print.cpp @@ -819,7 +819,8 @@ BoundingBox Print::total_bounding_box() const double Print::skirt_first_layer_height() const { - if (m_objects.empty()) CONFESS("skirt_first_layer_height() can't be called without PrintObjects"); + if (m_objects.empty()) + throw std::invalid_argument("skirt_first_layer_height() can't be called without PrintObjects"); return m_objects.front()->config().get_abs_value("first_layer_height"); } |