mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2025-01-12 17:00:32 +08:00
bugfixed Qt5.x problem
This commit is contained in:
parent
5dee5ae93d
commit
24cb74fc06
@ -362,8 +362,7 @@ double JKQTMathTextBoxInstructionNode::draw(QPainter& painter, double x, double
|
|||||||
getChild()->getSize(painter, ev, width, baselineHeight, overallHeight, strikeoutPos);
|
getChild()->getSize(painter, ev, width, baselineHeight, overallHeight, strikeoutPos);
|
||||||
|
|
||||||
{
|
{
|
||||||
painter.save();
|
painter.save(); auto __finalpaint=JKQTPFinally([&painter]() {painter.restore();});
|
||||||
JKQTPFinalAct __finalpaint([&painter]() { painter.restore(); });
|
|
||||||
painter.setBrush(b);
|
painter.setBrush(b);
|
||||||
painter.setPen(p);
|
painter.setPen(p);
|
||||||
const QRectF rect(x+lw/2.0, y-baselineHeight-padding-lw/2.0, width+2.0*padding, overallHeight+2.0*padding);
|
const QRectF rect(x+lw/2.0, y-baselineHeight-padding-lw/2.0, width+2.0*padding, overallHeight+2.0*padding);
|
||||||
|
Loading…
Reference in New Issue
Block a user