Fix crash in editor on exit
This commit is contained in:
@@ -272,7 +272,7 @@ namespace FlaxEditor.Windows
|
|||||||
|
|
||||||
private void OnOutputTextChanged()
|
private void OnOutputTextChanged()
|
||||||
{
|
{
|
||||||
if (IsLayoutLocked)
|
if (IsLayoutLocked || _output == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
_hScroll.Maximum = Mathf.Max(_output.TextSize.X, _hScroll.Minimum);
|
_hScroll.Maximum = Mathf.Max(_output.TextSize.X, _hScroll.Minimum);
|
||||||
|
|||||||
Reference in New Issue
Block a user