Skip to content

Commit

Permalink
Add braces to keep gcc happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
highperformancecoder committed Nov 6, 2023
1 parent 7bf96eb commit 57d701e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion classdesc
10 changes: 6 additions & 4 deletions src/plot.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1119,10 +1119,12 @@ namespace ecolab
of<<separator<<"x-label";
for (size_t i=0; i<x.size(); ++i)
if (!x[i].empty())
if (i<penTextLabel.size() && !penTextLabel[i].empty())
of<<separator << stripPangoMarkup(penTextLabel[i]);
else
of<<separator <<"y"<<i;
{
if (i<penTextLabel.size() && !penTextLabel[i].empty())
of<<separator << stripPangoMarkup(penTextLabel[i]);
else
of<<separator <<"y"<<i;
}

of<<endl;

Expand Down

0 comments on commit 57d701e

Please sign in to comment.