From e6debc72612bbac9ba2e13f15b33a5ee828d48ac Mon Sep 17 00:00:00 2001 From: joern274 Date: Sat, 1 Jun 2024 22:12:01 +0200 Subject: [PATCH] fix bug in recent bugfix: must eliminate trailing whitespace completely --- .../netlist_simulator_controller/src/vcd_serializer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/simulator/netlist_simulator_controller/src/vcd_serializer.cpp b/plugins/simulator/netlist_simulator_controller/src/vcd_serializer.cpp index a6ff46b8738..9e50d1191d5 100644 --- a/plugins/simulator/netlist_simulator_controller/src/vcd_serializer.cpp +++ b/plugins/simulator/netlist_simulator_controller/src/vcd_serializer.cpp @@ -541,7 +541,8 @@ namespace hal { bool ok; QString wireName = mWire.captured(3); if (!wireName.isEmpty() && wireName.at(0)=='\\') wireName.remove(0,1); - const Net* net = netNames.value(wireName.trimmed()); + wireName = wireName.trimmed(); + const Net* net = netNames.value(wireName); if (!netNames.isEmpty() && !net) continue; // net not found in given name list if (mAbbrevByName.contains(wireName)) {