From 6c86db61408606b6f9489b61978a7f074666fd70 Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Sun, 6 Dec 2020 09:10:41 +0100 Subject: [PATCH] Allowfont fix only if ystem has more than 400 fonts --- src/ui/widget/combo-box-entry-tool-item.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/widget/combo-box-entry-tool-item.cpp b/src/ui/widget/combo-box-entry-tool-item.cpp index 9bce9ce91b..24f424e71b 100644 --- a/src/ui/widget/combo-box-entry-tool-item.cpp +++ b/src/ui/widget/combo-box-entry-tool-item.cpp @@ -124,7 +124,7 @@ ComboBoxEntryToolItem::ComboBoxEntryToolItem(Glib::ustring name, gtk_cell_layout_clear( GTK_CELL_LAYOUT( comboBoxEntry ) ); gtk_cell_layout_pack_start( GTK_CELL_LAYOUT( comboBoxEntry ), _cell, true ); gtk_cell_layout_set_cell_data_func (GTK_CELL_LAYOUT( comboBoxEntry ), _cell, - GtkCellLayoutDataFunc (_cell_data_func), 0, nullptr ); + GtkCellLayoutDataFunc (_cell_data_func), total < 400 ? comboBoxEntry : 0, nullptr ); } // Optionally widen the combobox width... which widens the drop-down list in list mode. -- GitLab