[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53230] trunk/blender/source/blender/ editors/animation/fmodifier_ui.c: Bugfix [#33623] Missing labels in UI for Expanded Polynomial FModifier

Joshua Leung aligorith at gmail.com
Fri Dec 21 06:55:24 CET 2012


Revision: 53230
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53230
Author:   aligorith
Date:     2012-12-21 05:55:17 +0000 (Fri, 21 Dec 2012)
Log Message:
-----------
Bugfix [#33623] Missing labels in UI for Expanded Polynomial FModifier

Fix for second issue in the UI for this FModifier, where the "x" would not be
shown for order=1 where DPI >= 88 and Text AA is off, as the label sizes used
were too small.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/animation/fmodifier_ui.c

Modified: trunk/blender/source/blender/editors/animation/fmodifier_ui.c
===================================================================
--- trunk/blender/source/blender/editors/animation/fmodifier_ui.c	2012-12-21 05:07:26 UTC (rev 53229)
+++ trunk/blender/source/blender/editors/animation/fmodifier_ui.c	2012-12-21 05:55:17 UTC (rev 53230)
@@ -151,7 +151,7 @@
 			}
 			else {
 				/* basic size (just "x") */
-				maxXWidth = 15; 
+				maxXWidth = UI_GetStringWidth("x") + 10; 
 			}
 			
 			/* draw controls for each coefficient and a + sign at end of row */
@@ -233,14 +233,14 @@
 				
 				/* closing bracket and multiplication sign */
 				if ( (i != (data->poly_order - 1)) || ((i == 0) && data->poly_order == 2) ) {
-					uiDefBut(block, LABEL, 1, ") \xD7", 0, 0, 30, 20, NULL, 0.0, 0.0, 0, 0, "");
+					uiDefBut(block, LABEL, 1, ") \xD7", 0, 0, 40, 20, NULL, 0.0, 0.0, 0, 0, "");
 					
 					/* set up new row for the next pair of coefficients */
 					row = uiLayoutRow(layout, TRUE);
 					block = uiLayoutGetBlock(row);
 				}
 				else 
-					uiDefBut(block, LABEL, 1, ")  ", 0, 0, 30, 20, NULL, 0.0, 0.0, 0, 0, "");
+					uiDefBut(block, LABEL, 1, ")  ", 0, 0, 40, 20, NULL, 0.0, 0.0, 0, 0, "");
 			}
 		}
 		break;




More information about the Bf-blender-cvs mailing list