Fix studio palette drawtoggle for linux

Fixes https://github.com/opentoonz/opentoonz/issues/4949
This commit is contained in:
konero 2023-06-29 16:18:37 +01:00 committed by GitHub
parent fb3d710197
commit a93bcea671
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.drawRect(rect);
p.save();
if (globalName[0] == L'+') {
QPointF a(x + 2, y + 2);
QPointF b(x + 2, y + 5);
@ -580,6 +582,8 @@ void PageViewer::drawToggleLink(QPainter &p, QRect &chipRect,
p.drawLine(a, c);
p.drawLine(a, d);
}
p.restore();
}
}