mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-03 17:21:11 +00:00
fontchooserwidget: Handle dpi < 0
Just use 96.0
This commit is contained in:
parent
14f1811158
commit
1377ff08c0
@ -807,7 +807,7 @@ gtk_font_chooser_widget_get_preview_text_height (GtkFontChooserWidget *fontchoos
|
||||
"font-size", &font_size,
|
||||
NULL);
|
||||
|
||||
return dpi / 72.0 * PANGO_SCALE_X_LARGE * font_size * PANGO_SCALE;
|
||||
return (dpi < 0.0 ? 96.0 : dpi) / 72.0 * PANGO_SCALE_X_LARGE * font_size * PANGO_SCALE;
|
||||
}
|
||||
|
||||
static PangoAttrList *
|
||||
|
Loading…
Reference in New Issue
Block a user