From e6aaaf407f28962da8b5f146fb694d3d6af0202c Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Fri, 20 Apr 2018 05:16:13 +0200 Subject: [PATCH] fix #298 - Opening the terminal in Linux gives an "Access Violation" --- etc/terminal/terminalctrls.pas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etc/terminal/terminalctrls.pas b/etc/terminal/terminalctrls.pas index daa676b9..721fed47 100644 --- a/etc/terminal/terminalctrls.pas +++ b/etc/terminal/terminalctrls.pas @@ -359,6 +359,8 @@ var v: TGValue; begin fScrollbackLines:=value; + if not assigned(FInFo) then + exit; v.g_type:= 1; v.data[0].v_uint := fScrollbackLines; g_object_set_property(PGObject(PWidgetInfo(FInfo).ClientWidget), 'scrollback-lines', @v);