Fix T78146: Crash using scroll bars

Regression in 2fdca5bd19
This commit is contained in:
Campbell Barton 2020-06-23 15:21:30 +10:00
parent 374e412813
commit ed68fee665
Notes: blender-bot 2023-02-14 00:20:19 +01:00
Referenced by issue #78157, Scrolling in any windows or panel using the right side slider crashes Blender
Referenced by issue #78146, Scroll bar use crashes blender
2 changed files with 7 additions and 2 deletions

View File

@ -1408,8 +1408,10 @@ struct View2DScrollers {
int vert_min, vert_max; /* vertical scrollbar */
int hor_min, hor_max; /* horizontal scrollbar */
rcti hor, vert; /* exact size of slider backdrop */
int horfull, vertfull; /* set if sliders are full, we don't draw them */
/** Exact size of slider backdrop. */
rcti hor, vert;
/* set if sliders are full, we don't draw them */
/* int horfull, vertfull; */ /* UNUSED */
};
/* Calculate relevant scroller properties */

View File

@ -1922,6 +1922,9 @@ struct View2DScrollers {
/* focus bubbles */
int vert_min, vert_max; /* vertical scrollbar */
int hor_min, hor_max; /* horizontal scrollbar */
/* These values are written into, even if we don't use them. */
rcti _hor, _vert;
};
/* quick enum for vsm->zone (scroller handles) */