Fix report banner text width
authorCampbell Barton <ideasman42@gmail.com>
Tue, 22 Sep 2015 07:18:43 +0000 (17:18 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 22 Sep 2015 07:18:43 +0000 (17:18 +1000)
release/datafiles/locale
release/scripts/addons
release/scripts/addons_contrib
source/blender/editors/interface/interface_templates.c

index de6c83e12e75ffaac90eddbd3cb7451b57c2e0ce..c651e63a9a537624f639950f3127a1dee29205d0 160000 (submodule)
@@ -1 +1 @@
-Subproject commit de6c83e12e75ffaac90eddbd3cb7451b57c2e0ce
+Subproject commit c651e63a9a537624f639950f3127a1dee29205d0
index 94c9c4ee3370d1feb42fc978a1f0d2db07cb9431..0eef469a5d444f396152376a49d7faad0ba51aba 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 94c9c4ee3370d1feb42fc978a1f0d2db07cb9431
+Subproject commit 0eef469a5d444f396152376a49d7faad0ba51aba
index e31cec5bf243f00441c7dad7a775ec4722f829d3..cf842d8bb7b0033ca4fa99f7ebedcbd3810fd274 160000 (submodule)
@@ -1 +1 @@
-Subproject commit e31cec5bf243f00441c7dad7a775ec4722f829d3
+Subproject commit cf842d8bb7b0033ca4fa99f7ebedcbd3810fd274
index 44e130ed896825a8210661126d21ea0ce255dace..1238b883e9ac06b0ffe402c3dc72f3ba91d4a398 100644 (file)
@@ -3484,7 +3484,8 @@ void uiTemplateReportsBanner(uiLayout *layout, bContext *C)
        ui_abs = uiLayoutAbsolute(layout, false);
        block = uiLayoutGetBlock(ui_abs);
        
-       width = BLF_width(style->widget.uifont_id, report->message, report->len);
+       UI_fontstyle_set(&style->widgetlabel);
+       width = BLF_width(style->widgetlabel.uifont_id, report->message, report->len);
        width = min_ii((int)(rti->widthfac * width), width);
        width = max_ii(width, 10);