From 2a341d77b16175929c5176d89db5dc7dda199d56 Mon Sep 17 00:00:00 2001 From: Evgenii Zheltonozhskii Date: Thu, 25 Oct 2018 12:54:49 +0300 Subject: [PATCH] Fix broken lambda (MSVC bug?) --- Telegram/SourceFiles/ui/images.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/ui/images.cpp b/Telegram/SourceFiles/ui/images.cpp index 3ff602610..bb95950ad 100644 --- a/Telegram/SourceFiles/ui/images.cpp +++ b/Telegram/SourceFiles/ui/images.cpp @@ -230,7 +230,7 @@ void prepareRound(QImage &image, QImage *cornerMasks, ImageRoundCorners corners) auto intsTopRight = ints + imageWidth - cornerWidth; auto intsBottomLeft = ints + (imageHeight - cornerHeight) * imageWidth; auto intsBottomRight = ints + (imageHeight - cornerHeight + 1) * imageWidth - cornerWidth; - auto maskCorner = [imageIntsPerLine](quint32 *imageInts, const QImage &mask) { + auto maskCorner = [imageIntsPerPixel, imageIntsPerLine](quint32 *imageInts, const QImage &mask) { auto maskWidth = mask.width(); auto maskHeight = mask.height(); auto maskBytesPerPixel = (mask.depth() >> 3);