summarylogtreecommitdiffstats
path: root/issue710.patch
diff options
context:
space:
mode:
Diffstat (limited to 'issue710.patch')
-rw-r--r--issue710.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/issue710.patch b/issue710.patch
new file mode 100644
index 000000000000..1e1806aace45
--- /dev/null
+++ b/issue710.patch
@@ -0,0 +1,17 @@
+--- qucs-core/src/net.cpp
++++ qucs-core/src/net.cpp
+@@ -350,7 +350,13 @@ void net::orderAnalysis (void) {
+ void net::sortChildAnalyses (analysis * parent) {
+ ptrlist<analysis> * alist = parent->getAnalysis ();
+ if (alist != nullptr) {
+- for (auto *a: *alist) {
++
++ for (auto it = alist->begin(); it != alist->end(); /* empty */) {
++ // Copy the value of the element (a pointer), and advance the
++ // iterator prior to manipulating the list.
++ analysis *a = *it;
++ ++it;
++
+ if (a->getType () == ANALYSIS_DC
+ || containsAnalysis (a, ANALYSIS_DC)) {
+ parent->delAnalysis (a);