Browse Source

Prevent from crash in TAB settings

pull/3763/merge
Don HO 7 years ago
parent
commit
5eee71f493
  1. 2
      PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp

2
PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp

@ -3316,7 +3316,7 @@ void ScintillaEditView::setTabSettings(Lang *lang)
else
{
const NppGUI & nppgui = _pParameter->getNppGUI();
execute(SCI_SETTABWIDTH, nppgui._tabSize);
execute(SCI_SETTABWIDTH, nppgui._tabSize > 0 ? nppgui._tabSize : lang->_tabSize);
execute(SCI_SETUSETABS, !nppgui._tabReplacedBySpace);
}
}

Loading…
Cancel
Save