Diffusion Krita 5c326ec1cf6b

Don't return between QPainter save and restore

Authored by Mathias Wein <lynx.mw@gmail.com> on Sep 1 2019, 10:40 PM.

Description

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.

Details

Committed
Mathias Wein <lynx.mw@gmail.com>Sep 5 2019, 8:10 PM
Parents
R37:5d9725e35b60: Add back reworked HDR handling to KisVisualColorSelector
Branches
Unknown
Tags
Unknown
References
refs/merge-requests/125/head, refs/keep-around/5c326ec1cf6b0afce55b5f43a916efeb8368bc56
Mathias Wein <lynx.mw@gmail.com> committed R37:5c326ec1cf6b: Don't return between QPainter save and restore (authored by Mathias Wein <lynx.mw@gmail.com>).Sep 5 2019, 8:10 PM