Skip to content

Commit

Permalink
Merge pull request #932 from in3otd/hotfix-graph
Browse files Browse the repository at this point in the history
Fix Graph loading when Dataset names contain spaces (-> develop)
  • Loading branch information
guitorri authored Feb 23, 2020
2 parents e80a9b2 + d5f9d79 commit b480ad1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qucs/qucs/diagrams/graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ bool Graph::load(const QString& _s)
s = s.mid(1, s.length()-2); // cut off start and end character

Var = s.section('"',1,1); // Var
// Var can include a Dataset name, which can contain spaces
// remove the Var string so subsequent parsing of the other fields does not fail in this case
s = s.section('"', 2); // keep everything after the closing quotes

QString n;
n = s.section(' ',1,1); // Color
Expand Down

0 comments on commit b480ad1

Please sign in to comment.