Permalink
Browse files

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

  • Loading branch information...
ansgarbecker committed Dec 5, 2018
1 parent ee3dcf1 commit a7c0883e9ac81bb62fcc517e95dfd9c57342bec5
Showing with 5 additions and 5 deletions.
  1. +3 −3 out/locale/en/LC_MESSAGES/default.po
  2. +2 −2 source/main.pas
@@ -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\"?"
@@ -3075,7 +3075,7 @@ procedure TMainForm.UpdatePreviewPanel;
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 @@ procedure TMainForm.UpdatePreviewPanel;
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;

0 comments on commit a7c0883

Please sign in to comment.