Fix uninitialized var in recent change to cursor drawing

This commit is contained in:
Campbell Barton
2014-05-31 17:30:04 +10:00
parent c68295f7d3
commit aec8f4f777

View File

@@ -1278,6 +1278,9 @@ static void widget_draw_text(uiFontStyle *fstyle, uiWidgetColors *wcol, uiBut *b
if (drawstr[0] != 0) {
t = BLF_width(fstyle->uifont_id, drawstr + but->ofs, but->pos - but->ofs);
}
else {
t = 0;
}
glColor3f(0.20, 0.6, 0.9);
glRecti(rect->xmin + t, rect->ymin + 2, rect->xmin + t + 2, rect->ymax - 2);