Update toonz/sources/toonzqt/styleeditor.cpp
fix crash on shrinking docked style editor panel Co-authored-by: justburner <433868+justburner@users.noreply.github.com>
This commit is contained in:
parent
caf6d70d60
commit
1030d98f38
1 changed files with 1 additions and 0 deletions
|
@ -1334,6 +1334,7 @@ void ColorSlider::paintEvent(QPaintEvent *event) {
|
|||
w -= s_chandle_size;
|
||||
h -= 3;
|
||||
}
|
||||
if (w < 2 || h < 2) return;
|
||||
|
||||
QPixmap bgPixmap =
|
||||
makeLinearShading(m_color, m_channel, isVertical ? h : w, isVertical);
|
||||
|
|
Loading…
Reference in a new issue