summaryrefslogtreecommitdiffstats
path: root/src/ui/tool/path-manipulator.cpp
diff options
context:
space:
mode:
authorsu_v <suv-sf@users.sourceforge.net>2012-09-25 20:34:14 +0000
committer~suv <suv-sf@users.sourceforge.net>2012-09-25 20:34:14 +0000
commit136a8737897b8340def4bb09a85d12824d9b50bd (patch)
tree5bb55cf1ef167a5127125d4ee74a7a5f173df20e /src/ui/tool/path-manipulator.cpp
parentFix pointer issue in EMF code (diff)
downloadinkscape-136a8737897b8340def4bb09a85d12824d9b50bd.tar.gz
inkscape-136a8737897b8340def4bb09a85d12824d9b50bd.zip
revert changes not strictly required for EMF support
(bzr r11668.1.12)
Diffstat (limited to 'src/ui/tool/path-manipulator.cpp')
-rw-r--r--src/ui/tool/path-manipulator.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp
index 8a5a79ec3..35eb23f42 100644
--- a/src/ui/tool/path-manipulator.cpp
+++ b/src/ui/tool/path-manipulator.cpp
@@ -949,12 +949,10 @@ void PathManipulator::hideDragPoint()
* at the given time value */
NodeList::iterator PathManipulator::subdivideSegment(NodeList::iterator first, double t)
{
- //throw originally used std::invalid_argument, that caused a link error against static libstdc++,
- //this form was only used here.
- if (!first) throw "Subdivide after invalid iterator";
+ if (!first) throw std::invalid_argument("Subdivide after invalid iterator");
NodeList &list = NodeList::get(first);
NodeList::iterator second = first.next();
- if (!second) throw "Subdivide after last node in open path";
+ if (!second) throw std::invalid_argument("Subdivide after last node in open path");
// We need to insert the segment after 'first'. We can't simply use 'second'
// as the point of insertion, because when 'first' is the last node of closed path,