mirror of https://github.com/procxx/kepka.git
Fix crash in empty sticker set box.
This commit is contained in:
parent
f4544b0964
commit
7093254b66
|
@ -253,6 +253,7 @@ void StickerSetBox::Inner::gotSet(const MTPmessages_StickerSet &set) {
|
||||||
|
|
||||||
if (_pack.isEmpty()) {
|
if (_pack.isEmpty()) {
|
||||||
Ui::show(Box<InformBox>(lang(lng_stickers_not_found)));
|
Ui::show(Box<InformBox>(lang(lng_stickers_not_found)));
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
int32 rows = _pack.size() / kStickersPanelPerRow + ((_pack.size() % kStickersPanelPerRow) ? 1 : 0);
|
int32 rows = _pack.size() / kStickersPanelPerRow + ((_pack.size() % kStickersPanelPerRow) ? 1 : 0);
|
||||||
resize(st::stickersPadding.left() + kStickersPanelPerRow * st::stickersSize.width(), st::stickersPadding.top() + rows * st::stickersSize.height() + st::stickersPadding.bottom());
|
resize(st::stickersPadding.left() + kStickersPanelPerRow * st::stickersSize.width(), st::stickersPadding.top() + rows * st::stickersSize.height() + st::stickersPadding.bottom());
|
||||||
|
|
Loading…
Reference in New Issue