Permalink
Browse files

Try to fix one of the oldest bugs: Prevent SQL log from getting a zer…

…o value height, in special cases I could never reproduce here. Users reported that here: http://www.heidisql.com/forum.php?t=10384

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4114 560a3889-bb33-0410-9f33-43a8a102dc09
  • Loading branch information...
1 parent 1b55588 commit e3f03c7863e7a888ad483486f42fa397e3ddaa12 ansgar.becker committed Mar 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 source/main.pas
View
@@ -1512,7 +1512,7 @@ procedure TMainForm.FormCreate(Sender: TObject);
pnlPreview.Height := GetRegValue(REGNAME_PREVIEW_HEIGHT, pnlPreview.Height);
if GetRegValue(REGNAME_PREVIEW_ENABLED, actDataPreview.Checked) and (not actDataPreview.Checked) then
actDataPreviewExecute(actDataPreview);
- SynMemoSQLLog.Height := GetRegValue(REGNAME_SQLOUTHEIGHT, SynMemoSQLLog.Height);
+ SynMemoSQLLog.Height := Max(GetRegValue(REGNAME_SQLOUTHEIGHT, SynMemoSQLLog.Height), splitterTopBottom.MinSize);
// Force status bar position to below log memo
StatusBar.Top := SynMemoSQLLog.Top + SynMemoSQLLog.Height;
prefMaxColWidth := GetRegValue(REGNAME_MAXCOLWIDTH, DEFAULT_MAXCOLWIDTH);

0 comments on commit e3f03c7

Please sign in to comment.