mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02: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