mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 22:27:20 +02:00
Fix a std::clamp assertion
This commit is contained in:
parent
ec427ad45d
commit
a8b5061003
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ QSize Photo::countCurrentSize(int newWidth) {
|
|||
const auto thumbMaxWidth = qMin(newWidth, st::maxMediaSize);
|
||||
const auto minWidth = std::clamp(
|
||||
_parent->minWidthForMedia(),
|
||||
(_parent->hasBubble()
|
||||
qMin(thumbMaxWidth, _parent->hasBubble()
|
||||
? st::historyPhotoBubbleMinWidth
|
||||
: st::minPhotoSize),
|
||||
thumbMaxWidth);
|
||||
|
|
Loading…
Add table
Reference in a new issue