From a7c0883e9ac81bb62fcc517e95dfd9c57342bec5 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Wed, 5 Dec 2018 21:11:40 +0100 Subject: [PATCH] Display size of BLOB in preview panel. Closes #429. --- out/locale/en/LC_MESSAGES/default.po | 6 +++--- source/main.pas | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/out/locale/en/LC_MESSAGES/default.po b/out/locale/en/LC_MESSAGES/default.po index 277afb4e..b921737d 100644 --- a/out/locale/en/LC_MESSAGES/default.po +++ b/out/locale/en/LC_MESSAGES/default.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: HeidiSQL\n" "POT-Creation-Date: 2012-11-05 21:40\n" -"PO-Revision-Date: 2018-12-05 20:41+0100\n" +"PO-Revision-Date: 2018-12-05 21:11+0100\n" "Last-Translator: Ansgar Becker \n" "Language-Team: English (http://www.transifex.com/projects/p/heidisql/language/en/)\n" "MIME-Version: 1.0\n" @@ -4440,8 +4440,8 @@ msgid "Loading ..." msgstr "Loading ..." #: main.pas:2611 -msgid "No image detected." -msgstr "No image detected." +msgid "No image detected, %s" +msgstr "No image detected, %s" #: main.pas:2711 msgid "Drop Database \"%s\"?" diff --git a/source/main.pas b/source/main.pas index 76955280..0479390a 100644 --- a/source/main.pas +++ b/source/main.pas @@ -3075,7 +3075,7 @@ begin Results.RecNo := RowNum^; Content := AnsiString(Results.Col(Grid.FocusedColumn)); - StrLen := Length(Content); + StrLen := Results.ColumnLengths(Grid.FocusedColumn); ContentStream := TMemoryStream.Create; ContentStream.Write(Content[1], StrLen); ContentStream.Position := 0; @@ -3110,7 +3110,7 @@ begin end; FreeAndNil(ContentStream); end else - lblPreviewTitle.Caption := _('No image detected.'); + lblPreviewTitle.Caption := f_('No image detected, %s', [FormatByteNumber(StrLen)]); finally lblPreviewTitle.Hint := lblPreviewTitle.Caption; ShowStatusMsg;