mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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 thumbMaxWidth = qMin(newWidth, st::maxMediaSize);
|
||||||
const auto minWidth = std::clamp(
|
const auto minWidth = std::clamp(
|
||||||
_parent->minWidthForMedia(),
|
_parent->minWidthForMedia(),
|
||||||
(_parent->hasBubble()
|
qMin(thumbMaxWidth, _parent->hasBubble()
|
||||||
? st::historyPhotoBubbleMinWidth
|
? st::historyPhotoBubbleMinWidth
|
||||||
: st::minPhotoSize),
|
: st::minPhotoSize),
|
||||||
thumbMaxWidth);
|
thumbMaxWidth);
|
||||||
|
|
Loading…
Add table
Reference in a new issue