From 2c83af7e9ebc6b31d95d4bc91bf7b3ae1ec6dff5 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 10 Oct 2019 12:03:30 +0300 Subject: [PATCH] Fix bug with adding font to recent (font isn't in the font list) --- apps/common/main/lib/component/ComboBoxFonts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/main/lib/component/ComboBoxFonts.js b/apps/common/main/lib/component/ComboBoxFonts.js index 6acff6762..8ef57414a 100644 --- a/apps/common/main/lib/component/ComboBoxFonts.js +++ b/apps/common/main/lib/component/ComboBoxFonts.js @@ -430,7 +430,7 @@ define([ }, addItemToRecent: function(record, silent) { - if (this.recent<1) return; + if (!record || this.recent<1) return; var font = this.store.findWhere({name: record.get('name'),type:FONT_TYPE_RECENT}); font && this.store.remove(font);