diff --git a/app/widgets/gimptextstyleeditor.c b/app/widgets/gimptextstyleeditor.c index 3405d7536f..d0d8e34752 100644 --- a/app/widgets/gimptextstyleeditor.c +++ b/app/widgets/gimptextstyleeditor.c @@ -211,7 +211,7 @@ gimp_text_style_editor_init (GimpTextStyleEditor *editor) _("Change font of selected text"), NULL); editor->size_entry = - gimp_size_entry_new (1, 0, "%a", TRUE, FALSE, FALSE, 10, + gimp_size_entry_new (1, gimp_unit_pixel (), "%a", TRUE, FALSE, FALSE, 10, GIMP_SIZE_ENTRY_UPDATE_SIZE); gtk_box_pack_start (GTK_BOX (editor->upper_hbox), editor->size_entry, FALSE, FALSE, 0); diff --git a/libgimpwidgets/gimpsizeentry.c b/libgimpwidgets/gimpsizeentry.c index f11d1fe179..1c3929b197 100644 --- a/libgimpwidgets/gimpsizeentry.c +++ b/libgimpwidgets/gimpsizeentry.c @@ -282,6 +282,7 @@ gimp_size_entry_new (gint number_of_fields, GimpUnitStore *store; gint i; + g_return_val_if_fail (GIMP_IS_UNIT (unit), NULL); g_return_val_if_fail ((number_of_fields >= 0) && (number_of_fields <= 16), NULL);