Skip to content

Commit

Permalink
fix typo in StringBox::add_right where padding could be inserted into…
Browse files Browse the repository at this point in the history
… the wrong StringBox, resolves symengine#2029
  • Loading branch information
lkeegan committed Jun 3, 2024
1 parent 2413bc6 commit f33584e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion symengine/printers/stringbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void StringBox::add_right(StringBox &other)
smaller->lines_.insert(smaller->lines_.begin(), pad);
}
if (odd == 1) {
smaller->lines_.insert(lines_.begin(), pad);
smaller->lines_.insert(smaller->lines_.begin(), pad);
}
for (unsigned i = 0; i < lines_.size(); i++) {
lines_[i].append(other.lines_[i]);
Expand Down

0 comments on commit f33584e

Please sign in to comment.