From f3d189bf9df552fe8ba657380ef6f3316bf5afa8 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Mon, 27 Jun 2011 19:15:55 +0200 Subject: fix crasher Fixed bugs: - https://launchpad.net/bugs/802212 (bzr r10375) --- src/sp-conn-end-pair.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3