2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-18 13:59:46 +00:00

Fix document unloading.

This commit is contained in:
John Preston
2018-10-30 10:17:34 +04:00
parent 264ab285a7
commit f2348fc749
3 changed files with 8 additions and 5 deletions

View File

@@ -149,7 +149,9 @@ LocalFileSource::LocalFileSource(
: _path(path)
, _bytes(content)
, _format(format)
, _data(std::move(data)) {
, _data(std::move(data))
, _width(_data.width())
, _height(_data.height()) {
}
void LocalFileSource::load(