Fix for bug 830342 (Scale combobox is broken in print-preview, after selecting "Custom" and then hitting "Cancel" on its spawned dialog). r=dolske.

--HG--
extra : rebase_source : 6c8804f960ac42e0773d4283637bf4073aeb408c
This commit is contained in:
Peter Van der Beken 2013-01-17 12:16:33 +01:00
parent c1b3c1ac36
commit a0c91feb8e

View File

@ -294,7 +294,9 @@
if (aValue >= 10) {
aValue /= 100.0;
} else {
this.mScaleCombobox.selectedIndex = this.mScaleCombobox.getAttribute('lastValidInx');
if (this.mScaleCombobox.hasAttribute('lastValidInx')) {
this.mScaleCombobox.selectedIndex = this.mScaleCombobox.getAttribute('lastValidInx');
}
return;
}
}