summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsu_v <suv-sf@users.sourceforge.net>2012-09-23 17:06:25 +0000
committer~suv <suv-sf@users.sourceforge.net>2012-09-23 17:06:25 +0000
commitc2a0804d5730d0af382b13097379dc7c20bb34d5 (patch)
treeadb5c88fb727ba8c930ac1d96da365839e5b4959 /src
parentFixes bug #1050064: quiet console messages about supported values for 'color-... (diff)
downloadinkscape-c2a0804d5730d0af382b13097379dc7c20bb34d5.tar.gz
inkscape-c2a0804d5730d0af382b13097379dc7c20bb34d5.zip
Fixes bug #989972: avoid link error against static libstdc++ on Windows
(bzr r11668.1.5)
Diffstat (limited to 'src')
-rw-r--r--src/ui/tool/path-manipulator.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp
index 35eb23f42..8a5a79ec3 100644
--- a/src/ui/tool/path-manipulator.cpp
+++ b/src/ui/tool/path-manipulator.cpp
@@ -949,10 +949,12 @@ void PathManipulator::hideDragPoint()
* at the given time value */
NodeList::iterator PathManipulator::subdivideSegment(NodeList::iterator first, double t)
{
- if (!first) throw std::invalid_argument("Subdivide after invalid iterator");
+ //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";
NodeList &list = NodeList::get(first);
NodeList::iterator second = first.next();
- if (!second) throw std::invalid_argument("Subdivide after last node in open path");
+ if (!second) throw "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,