Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jkriege2 committed Jan 8, 2024
1 parent fa9773d commit 1b9d050
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/jkqtmathtext/nodes/jkqtmathtexttextnode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,9 @@ JKQTMathTextTextNode::LayoutInfo JKQTMathTextTextNode::calcLayout(QPainter &pain
break;
}
l.textpartXPos.append(l.width);
l.width+=hadv;
if (i==l.textpart.size()-1) l.width+=tbr.width()+qMax(0.0,tbr.x());
else l.width+=hadv;
/*
if (i==l.textpart.size()-1) l.width+=tbr.width();
else l.width+=br.width();
if (l.textpart[i].size()>0 && l.textpart[i].at(l.textpart[i].size()-1).isSpace()) {
// this correction is necessary, because it seems that QFontMetricsF::boundingRect() ignores trailing spaces
l.width+=sp;
Expand Down

0 comments on commit 1b9d050

Please sign in to comment.