mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fixed rare crash in photo editor when editing media in message.
This commit is contained in:
parent
76137ca1cf
commit
264e35a6a8
1 changed files with 3 additions and 0 deletions
|
@ -206,6 +206,9 @@ void EditPhotoImage(
|
||||||
Storage::UpdateImageDetails(file, previewWidth, sideLimit);
|
Storage::UpdateImageDetails(file, previewWidth, sideLimit);
|
||||||
done(std::move(list));
|
done(std::move(list));
|
||||||
};
|
};
|
||||||
|
if (!large) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const auto fileImage = std::make_shared<Image>(*large);
|
const auto fileImage = std::make_shared<Image>(*large);
|
||||||
auto editor = base::make_unique_q<Editor::PhotoEditor>(
|
auto editor = base::make_unique_q<Editor::PhotoEditor>(
|
||||||
parent,
|
parent,
|
||||||
|
|
Loading…
Add table
Reference in a new issue