mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Fix a std::clamp assertion
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user