diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2013-10-04 16:01:05 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2013-10-04 16:01:05 +0000 |
| commit | 8390b213aa2b3456664d7820b75a9f25458b1cd3 (patch) | |
| tree | f43dd23c7cd267c099f7bd7ded74add88271cab6 /src/ui/tool/path-manipulator.cpp | |
| parent | Remove unnecessary warning (diff) | |
| download | inkscape-8390b213aa2b3456664d7820b75a9f25458b1cd3.tar.gz inkscape-8390b213aa2b3456664d7820b75a9f25458b1cd3.zip | |
Do not allow NULL _spcurve to be set in PathManipulator.
Fixes crasher bug #488035.
Fixed bugs:
- https://launchpad.net/bugs/488035
(bzr r12655)
Diffstat (limited to 'src/ui/tool/path-manipulator.cpp')
| -rw-r--r-- | src/ui/tool/path-manipulator.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp index b775c0637..3d080ad19 100644 --- a/src/ui/tool/path-manipulator.cpp +++ b/src/ui/tool/path-manipulator.cpp @@ -1309,6 +1309,10 @@ void PathManipulator::_getGeometry() } else { _spcurve->unref(); _spcurve = _path->get_curve_for_edit(); + // never allow NULL to sneak in here! + if (_spcurve == NULL) { + _spcurve = new SPCurve(); + } } } |
