Display size of BLOB in preview panel. Closes #429.

This commit is contained in:
Ansgar Becker
2018-12-05 21:11:40 +01:00
parent ee3dcf1d2d
commit a7c0883e9a
2 changed files with 5 additions and 5 deletions

View File

@@ -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 <anse@heidisql.com>\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\"?"

View File

@@ -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;