summaryrefslogtreecommitdiffstats
path: root/src/sp-conn-end-pair.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2011-06-27 17:15:55 +0000
committerJohan Engelen <goejendaagh@zonnet.nl>2011-06-27 17:15:55 +0000
commitf3d189bf9df552fe8ba657380ef6f3316bf5afa8 (patch)
treec13950a1b5729f7116bab882b6a55538deaabe0a /src/sp-conn-end-pair.cpp
parentRemove "using namespace" from libcola headers. (diff)
downloadinkscape-f3d189bf9df552fe8ba657380ef6f3316bf5afa8.tar.gz
inkscape-f3d189bf9df552fe8ba657380ef6f3316bf5afa8.zip
fix crasher
Fixed bugs: - https://launchpad.net/bugs/802212 (bzr r10375)
Diffstat (limited to 'src/sp-conn-end-pair.cpp')
-rw-r--r--src/sp-conn-end-pair.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-conn-end-pair.cpp b/src/sp-conn-end-pair.cpp
index 3cc022c39..e22145425 100644
--- a/src/sp-conn-end-pair.cpp
+++ b/src/sp-conn-end-pair.cpp
@@ -224,7 +224,7 @@ SPConnEndPair::getEndpoints(Geom::Point endPts[]) const {
g_assert(h2attItem[h]->avoidRef);
endPts[h] = h2attItem[h]->avoidRef->getConnectionPointPos(_connEnd[h]->type, _connEnd[h]->id);
}
- else
+ else if (!curve->is_empty())
{
if (h == 0) {
endPts[h] = *(curve->first_point())*i2d;