mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 13:47:05 +02:00
Fix crash in QR code copy on scale < 100.
This commit is contained in:
parent
e0dd77f0c3
commit
343560225c
1 changed files with 1 additions and 1 deletions
|
@ -850,7 +850,7 @@ void FillPeerQrBox(
|
|||
const auto backgroundToggled = state->backgroundToggled.current();
|
||||
const auto scale = style::kScaleDefault
|
||||
* (kMaxQualities + int(state->scaleValue.current() * 2));
|
||||
const auto divider = std::max(1, style::Scale())
|
||||
const auto divider = std::max(100, style::Scale())
|
||||
/ style::kScaleDefault;
|
||||
const auto profileQrBackgroundRadius = style::ConvertScale(
|
||||
st::profileQrBackgroundRadius / divider,
|
||||
|
|
Loading…
Add table
Reference in a new issue