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:
authorbubnikv <bubnikv@gmail.com>2018-02-12 18:34:39 +0300
committerbubnikv <bubnikv@gmail.com>2018-02-12 18:34:39 +0300
commitadc9e749c4b6d82314a3693555991db19809fd94 (patch)
treed06c2112d12f4f8cfd23c1ae73b7df248a4c58a7
parent0571d22d5f6faf807857e9cc3ff7a60acfab6c86 (diff)
Clipper should always throw clipperExceptions, not strings.
-rw-r--r--xs/src/clipper.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/xs/src/clipper.cpp b/xs/src/clipper.cpp
index 5c63a6afe..e865288fb 100644
--- a/xs/src/clipper.cpp
+++ b/xs/src/clipper.cpp
@@ -561,7 +561,7 @@ inline void RangeTest(const IntPoint& Pt, bool& useFullRange)
if (useFullRange)
{
if (Pt.X > hiRange || Pt.Y > hiRange || -Pt.X > hiRange || -Pt.Y > hiRange)
- throw "Coordinate outside allowed range";
+ throw clipperException("Coordinate outside allowed range");
}
else if (Pt.X > loRange|| Pt.Y > loRange || -Pt.X > loRange || -Pt.Y > loRange)
{
@@ -2386,8 +2386,8 @@ void Clipper::ProcessHorizontal(TEdge *horzEdge)
void Clipper::UpdateEdgeIntoAEL(TEdge *&e)
{
- if( !e->NextInLML ) throw
- clipperException("UpdateEdgeIntoAEL: invalid call");
+ if( !e->NextInLML )
+ throw clipperException("UpdateEdgeIntoAEL: invalid call");
e->NextInLML->OutIdx = e->OutIdx;
TEdge* AelPrev = e->PrevInAEL;