fix [#34850] "x" to clear ID prop fields is too close to the right border

This commit is contained in:
2013-04-03 05:02:33 +00:00
parent a5bd9cbb93
commit 6ee5b2d40c

View File

@@ -1349,8 +1349,8 @@ static void widget_draw_text_icon(uiFontStyle *fstyle, uiWidgetColors *wcol, uiB
/* unlink icon for this button type */
if (but->type == SEARCH_MENU_UNLINK && but->drawstr[0]) {
rcti temp = *rect;
temp.xmin = temp.xmax - BLI_rcti_size_y(rect);
temp.xmin = temp.xmax - (BLI_rcti_size_y(rect) * 1.08f);
widget_draw_icon(but, ICON_X, alpha, &temp);
}