Bug 1556922 - C-C part: Follow-up. rs=bustage-fix DONTBUILD
authorJorg K <jorgk@jorgk.com>
Wed, 05 Jun 2019 12:09:40 +0200
changeset 35777 4a37dadf68195123ad4e38b39487a64c15f28d18
parent 35776 96ab0ff97ab4901115e88ee8cfb0d02d19c34a89
child 35778 911d98783d650cb83d15920c07046df8411834c1
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersbustage-fix
bugs1556922
Bug 1556922 - C-C part: Follow-up. rs=bustage-fix DONTBUILD
editor/ui/dialogs/content/EdSpellCheck.js
--- a/editor/ui/dialogs/content/EdSpellCheck.js
+++ b/editor/ui/dialogs/content/EdSpellCheck.js
@@ -130,17 +130,17 @@ function InitLanguageMenu(aCurLang) {
 
   // Remove any languages from the list.
   var languageMenuPopup = gDialog.LanguageMenulist.menupopup;
   while (languageMenuPopup.firstChild.localName != "menuseparator")
     languageMenuPopup.firstChild.remove();
 
   var defaultItem = null;
 
-  for (var i = 0; i < count; i++) {
+  for (var i = 0; i < gDictCount; i++) {
     let item = document.createXULElement("menuitem");
     item.setAttribute("label", sortedList[i].displayName);
     item.setAttribute("value", sortedList[i].localeCode);
     let beforeItem = gDialog.LanguageMenulist.getItemAtIndex(i);
     languageMenuPopup.insertBefore(item, beforeItem);
 
     if (aCurLang && sortedList[i].localeCode == aCurLang)
       defaultItem = item;