mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Make sure we check for non-null in background first.
This commit is contained in:
@@ -878,6 +878,7 @@ ChatBackgroundRects ComputeChatBackgroundRects(
|
||||
}
|
||||
|
||||
QColor CountAverageColor(const QImage &image) {
|
||||
Expects(!image.isNull());
|
||||
Expects(image.format() == QImage::Format_ARGB32_Premultiplied
|
||||
|| image.format() == QImage::Format_RGB32);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user