mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
fix: crash
This commit is contained in:
parent
af18da81f4
commit
77d129a738
1 changed files with 1 additions and 1 deletions
|
@ -361,7 +361,7 @@ QImage Make(not_null<QWidget*> box, const ShotConfig &config) {
|
||||||
const auto picY = y + view->height() - st::msgPhotoSize;
|
const auto picY = y + view->height() - st::msgPhotoSize;
|
||||||
|
|
||||||
auto userpicView =
|
auto userpicView =
|
||||||
!message->displayFrom()->activeUserpicView().null()
|
message->displayFrom()->hasUserpic()
|
||||||
? message->displayFrom()->activeUserpicView()
|
? message->displayFrom()->activeUserpicView()
|
||||||
: message->displayFrom()->createUserpicView();
|
: message->displayFrom()->createUserpicView();
|
||||||
message->displayFrom()->paintUserpic(p, userpicView, picX, picY, st::msgPhotoSize);
|
message->displayFrom()->paintUserpic(p, userpicView, picX, picY, st::msgPhotoSize);
|
||||||
|
|
Loading…
Add table
Reference in a new issue