mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 22:27:20 +02:00
Fix a crash with possible empty contact name.
This commit is contained in:
parent
f8e8155452
commit
75dc7e6e81
1 changed files with 4 additions and 0 deletions
|
@ -896,6 +896,10 @@ void OverlayWidget::RendererGL::paintStoriesSiblingPart(
|
|||
float64 opacity) {
|
||||
Expects(index >= 0 && index < kStoriesSiblingPartsCount);
|
||||
|
||||
if (image.isNull() || rect.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
_f->glActiveTexture(GL_TEXTURE0);
|
||||
|
||||
auto &part = _storiesSiblingParts[index];
|
||||
|
|
Loading…
Add table
Reference in a new issue