From 14b1d36b382123ee1f77815472b1002820d61cd9 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 8 Mar 2021 19:49:46 +0100 Subject: [PATCH] Simulator: Fix a ugly bug that happens is some simulations TRhe initial code was broken. --- eeschema/sim/ngspice.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eeschema/sim/ngspice.cpp b/eeschema/sim/ngspice.cpp index 4c9b8f6a75..1329b5062a 100644 --- a/eeschema/sim/ngspice.cpp +++ b/eeschema/sim/ngspice.cpp @@ -87,10 +87,11 @@ vector NGSPICE::AllPlots() const noOfPlots++; retVal.reserve( noOfPlots ); + for( int i = 0; i < noOfPlots; i++, allPlots++ ) { string vec = *allPlots; - retVal.at( i ) = vec; + retVal.push_back( vec ); } }