Fix long names in sending files preview.

This commit is contained in:
John Preston 2018-06-01 23:05:19 +03:00
parent 80be464d95
commit fdfdd0acce
1 changed files with 1 additions and 0 deletions

View File

@ -220,6 +220,7 @@ AlbumThumb::AlbumThumb(
if (_nameWidth > availableFileWidth) {
_name = st::semiboldFont->elided(
_name,
availableFileWidth,
Qt::ElideMiddle);
_nameWidth = st::semiboldFont->width(_name);
}