Merge pull request #1182 from konero/taho_fixdrawtoggle

Fix studio palette drawtoggle for linux
This commit is contained in:
manongjohn 2023-07-04 09:01:05 -04:00 committed by GitHub
commit 863f89c348
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -571,6 +571,8 @@ void PageViewer::drawToggleLink(QPainter &p, QRect &chipRect,
p.setPen(Qt::black); p.setPen(Qt::black);
p.drawRect(rect); p.drawRect(rect);
p.save();
if (globalName[0] == L'+') { if (globalName[0] == L'+') {
QPointF a(x + 2, y + 2); QPointF a(x + 2, y + 2);
QPointF b(x + 2, y + 5); QPointF b(x + 2, y + 5);
@ -580,6 +582,8 @@ void PageViewer::drawToggleLink(QPainter &p, QRect &chipRect,
p.drawLine(a, c); p.drawLine(a, c);
p.drawLine(a, d); p.drawLine(a, d);
} }
p.restore();
} }
} }