Skip to content

Commit

Permalink
Prevent from crash in TAB settings
Browse files Browse the repository at this point in the history
  • Loading branch information
donho committed Nov 25, 2017
1 parent 11579ee commit 78e0366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 78e0366

Please sign in to comment.