mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 05:37:09 +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);
|
||||
done(std::move(list));
|
||||
};
|
||||
if (!large) {
|
||||
return;
|
||||
}
|
||||
const auto fileImage = std::make_shared<Image>(*large);
|
||||
auto editor = base::make_unique_q<Editor::PhotoEditor>(
|
||||
parent,
|
||||
|
|
Loading…
Add table
Reference in a new issue