Skip to content

Commit

Permalink
Merge pull request #1415 from VinzenzBildstein/main
Browse files Browse the repository at this point in the history
Changed push_back to emplace_back due to segfault
  • Loading branch information
VinzenzBildstein authored May 21, 2024
2 parents ccf5e28 + 8e264c3 commit dc2982e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/TGUI/TCalibrationGraph.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ int TCalibrationGraphSet::Add(TGraphErrors* graph, const std::string& label)

if(fVerboseLevel > 2) std::cout<<"Adding new calibration graph and label to vectors"<<std::endl;
// add graph and label to our vectors
fGraphs.push_back(TCalibrationGraph(this, graph));
fResidualGraphs.push_back(TCalibrationGraph(this, 0, true));
fGraphs.emplace_back(this, graph);
fResidualGraphs.emplace_back(this, 0, true);
fLabel.push_back(label);
// set initial color
fGraphs.back().SetLineColor(fGraphs.size());
Expand Down

0 comments on commit dc2982e

Please sign in to comment.