mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
fix crash by moving assignment after lazy widget instantiation. r/sr/a=dbaron
This commit is contained in:
parent
13c1254292
commit
3c43fb8251
@ -1207,13 +1207,13 @@ moz_gtk_get_widget_border(GtkThemeWidgetType widget, gint* xthickness,
|
||||
/* If the focus is _not_ interior, then the container has a border
|
||||
of (focus_width + focus_pad). */
|
||||
if (widget == MOZ_GTK_CHECKBUTTON_CONTAINER) {
|
||||
w = gCheckboxWidget;
|
||||
moz_gtk_checkbox_get_focus(&interior_focus,
|
||||
&focus_width, &focus_pad);
|
||||
w = gCheckboxWidget;
|
||||
} else {
|
||||
w = gRadiobuttonWidget;
|
||||
moz_gtk_radio_get_focus(&interior_focus,
|
||||
&focus_width, &focus_pad);
|
||||
w = gRadiobuttonWidget;
|
||||
}
|
||||
|
||||
*xthickness = *ythickness = GTK_CONTAINER(w)->border_width;
|
||||
|
Loading…
Reference in New Issue
Block a user