Bug 824743 - Wrong stylesheet check while opening the respective editor, r=msucan

This commit is contained in:
Girish Sharma 2012-12-26 23:40:15 +05:30
parent 55d2c73fa0
commit e7aec72580

View File

@ -400,7 +400,7 @@ StyleEditorChrome.prototype = {
onEditorAdded: function SEC_selectSheet_onEditorAdded(aChrome, aEditor) {
let sheet = self._styleSheetToSelect.sheet;
if ((sheet && aEditor.styleSheet == sheet) ||
aEditor.styleSheetIndex == 0) {
(aEditor.styleSheetIndex == 0 && sheet == null)) {
aChrome.removeChromeListener(this);
select(aEditor);
}