use 'greater/less then or equal to' operators rather then adding 1.
This commit is contained in:
@@ -561,7 +561,7 @@ void ui_draw_but_HISTOGRAM(ARegion *ar, uiBut *but, uiWidgetColors *UNUSED(wcol)
|
||||
|
||||
glColor4f(1.f, 1.f, 1.f, 0.08f);
|
||||
/* draw grid lines here */
|
||||
for (i = 1; i < (HISTOGRAM_TOT_GRID_LINES + 1); i++) {
|
||||
for (i = 1; i <= HISTOGRAM_TOT_GRID_LINES; i++) {
|
||||
const float fac = (float)i / (float)HISTOGRAM_TOT_GRID_LINES;
|
||||
|
||||
/* so we can tell the 1.0 color point */
|
||||
|
||||
Reference in New Issue
Block a user