diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-11-17 23:06:41 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-11-17 23:06:41 +0000 |
| commit | bd06562677b313a9a4dc1706c63655bbaef0e681 (patch) | |
| tree | fb1f84c776797767b4c608becfa4c36b5f14fd82 /src/2geom/path.cpp | |
| parent | fix compile warning with C++ style cast (diff) | |
| download | inkscape-bd06562677b313a9a4dc1706c63655bbaef0e681.tar.gz inkscape-bd06562677b313a9a4dc1706c63655bbaef0e681.zip | |
2geom: splice exceptions code from utils.h into exception.h
(bzr r4097)
Diffstat (limited to 'src/2geom/path.cpp')
| -rw-r--r-- | src/2geom/path.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/2geom/path.cpp b/src/2geom/path.cpp index ba6643ae4..3d8d5ead3 100644 --- a/src/2geom/path.cpp +++ b/src/2geom/path.cpp @@ -145,7 +145,7 @@ const double eps = .1; void Path::append(Curve const &curve) { if ( curves_.front() != final_ && !are_near(curve.initialPoint(), (*final_)[0], eps) ) { - throw ContinuityError(); + throwContinuityError(); } do_append(curve.duplicate()); } @@ -154,7 +154,7 @@ void Path::append(D2<SBasis> const &curve) { if ( curves_.front() != final_ ) { for ( int i = 0 ; i < 2 ; ++i ) { if ( !are_near(curve[i][0][0], (*final_)[0][i], eps) ) { - throw ContinuityError(); + throwContinuityError(); } } } @@ -206,17 +206,17 @@ void Path::check_continuity(Sequence::iterator first_replaced, if ( first != last ) { if ( first_replaced != curves_.begin() ) { if ( !are_near( (*first_replaced)->initialPoint(), (*first)->initialPoint(), eps ) ) { - throw ContinuityError(); + throwContinuityError(); } } if ( last_replaced != (curves_.end()-1) ) { if ( !are_near( (*(last_replaced-1))->finalPoint(), (*(last-1))->finalPoint(), eps ) ) { - throw ContinuityError(); + throwContinuityError(); } } } else if ( first_replaced != last_replaced && first_replaced != curves_.begin() && last_replaced != curves_.end()-1) { if ( !are_near((*first_replaced)->initialPoint(), (*(last_replaced-1))->finalPoint(), eps ) ) { - throw ContinuityError(); + throwContinuityError(); } } } |
