From 810decc23eae7c956ab68b2c68e2bcb976770e93 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Mon, 5 Feb 2018 19:07:54 +0100 Subject: [PATCH] Init asLineBreakStyle setting with Windows linebreaks, so we don't run into crashes when grid value does not have any line ending. See issue #47 and https://www.heidisql.com/forum.php?t=24883 --- source/apphelpers.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/apphelpers.pas b/source/apphelpers.pas index d74e43882..04d6bd02e 100644 --- a/source/apphelpers.pas +++ b/source/apphelpers.pas @@ -3549,7 +3549,7 @@ constructor TAppSettings.Create; InitSetting(asFavoriteObjects, 'FavoriteObjects', 0, False, '', True); InitSetting(asFavoriteObjectsOnly, 'FavoriteObjectsOnly', 0, False); InitSetting(asFullTableStatus, 'FullTableStatus', 0, True, '', True); - InitSetting(asLineBreakStyle, 'LineBreakStyle', Integer(lbsNone)); + InitSetting(asLineBreakStyle, 'LineBreakStyle', Integer(lbsWindows)); InitSetting(asFileDialogEncoding, 'FileDialogEncoding_%s', 0); end;