Merged 15170:15635 from trunk (no conflicts or even merges)
[blender.git] / source / blender / src / interface_draw.c
index 83f1221b1fb72b23b8d393bcff66a6b64084e7da..e7041e6000373b2433e278780822dc7eb9d01aba 100644 (file)
@@ -180,8 +180,12 @@ static void ui_draw_icon(uiBut *but, BIFIconID icon, int blend)
                height= ICON_HEIGHT;
        
        if(but->flag & UI_ICON_LEFT) {
-               if (but->type==BUT_TOGDUAL && but->drawstr[0]) {
-                       xs= but->x1-1.0;
+               if (but->type==BUT_TOGDUAL) {
+                       if (but->drawstr[0]) {
+                               xs= but->x1-1.0;
+                       } else {
+                               xs= (but->x1+but->x2- height)/2.0;
+                       }
                }
                else if (but->type==BUTM ) {
                        xs= but->x1+1.0;