From b6c789b5d3b841da63e583743209a5dceca6e7fa Mon Sep 17 00:00:00 2001 From: Vadim Kuznetsov Date: Fri, 10 Jan 2025 17:08:21 +0300 Subject: [PATCH] Fix SPICE multilitne header parsing --- qucs/extsimkernels/spicecompat.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/qucs/extsimkernels/spicecompat.cpp b/qucs/extsimkernels/spicecompat.cpp index e123d96f..b8bbcf7d 100644 --- a/qucs/extsimkernels/spicecompat.cpp +++ b/qucs/extsimkernels/spicecompat.cpp @@ -296,7 +296,14 @@ int spicecompat::getPins(const QString &file, const QString &compname, QStringLi if (lin.startsWith("+")) { lin.remove(0,1); QStringList pins = lin.split(QRegularExpression("[ \\t]"),Qt::SkipEmptyParts); - pin_names.append(pins); + for(const auto &pin: pins) { + if (pin.toLower() == "params:") { + header_start = false; + break; + } else { + pin_names.append(pin); + } + } } else { // end of header header_start = false;