Don't return between QPainter save and restore
From Qt docs:
"A save() must be followed by a corresponding restore();"
So just move the conditional return up by one statement to avoid
incorrect stack unwinding in KisPaletteDelegate.
Mathias Wein <lynx.mw@gmail.com> | Sep 5 2019, 8:10 PM |