blob: c72fdd60021bf9a4583460e22ee3fed3130a2a66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
From e0bb9ff940f6eda544342c499998cf6142258629 Mon Sep 17 00:00:00 2001
From: "Martin T. H. Sandsmark" <martin.sandsmark@kde.org>
Date: Sun, 20 Dec 2020 14:43:31 +0100
Subject: [PATCH] fix odd crash
---
src/nodegroup.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/nodegroup.cpp b/src/nodegroup.cpp
index f4cfa2b4..94430409 100644
--- a/src/nodegroup.cpp
+++ b/src/nodegroup.cpp
@@ -142,8 +142,7 @@ void NodeGroup::updateRoutes()
Node *next = (routeIt == routeEnd) ? n2 : (Node *)*(routeIt++);
removeRoutedNodes(¤tList, prev, next);
QPointList pointList = *it;
- if ( prev != n1 )
- {
+ if (!pointList.isEmpty() && prev != n1) {
QPoint first = pointList.first();
prev->moveBy( first.x() - prev->x(), first.y() - prev->y() );
}
--
GitLab
|