Fix warning about inactive QPainter.
This commit is contained in:
parent
53e39e37eb
commit
4907cf35d1
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ public:
|
|||
const PainterHighQualityEnabler &other) = delete;
|
||||
|
||||
~PainterHighQualityEnabler() {
|
||||
if (_hints) {
|
||||
if (_hints && _painter.isActive()) {
|
||||
_painter.setRenderHints(_hints, false);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue