From 7b7b0b30fce3a72e472a05052cf8221ebaa83459 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Samuel=20R=C3=B8dal?= Date: Fri, 26 Apr 2013 12:40:18 +0200 Subject: [PATCH] Fixed segmentation fault when setting shadowBlur in Canvas element. Task-number: QTBUG-30882 Change-Id: I6c941394527bac62c0d2792acf5cf223279babc7 Reviewed-by: Gunnar Sletta --- src/quick/items/context2d/qquickcontext2d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quick/items/context2d/qquickcontext2d.cpp b/src/quick/items/context2d/qquickcontext2d.cpp index 2859388..b366775 100644 --- a/src/quick/items/context2d/qquickcontext2d.cpp +++ b/src/quick/items/context2d/qquickcontext2d.cpp @@ -282,7 +282,7 @@ QImage qt_image_convolute_filter(const QImage& src, const QVector& weight for (int cx=0; cx= 0 && scy < w && scx >= 0 && scx < h) { + if (scy >= 0 && scy < h && scx >= 0 && scx < w) { const QRgb *sr = (const QRgb*)(src.constScanLine(scy)); const unsigned char* sRgb = ((const unsigned char*)&sr[scx]); qreal wt = radius ? weights[0] : weights[cy*sides+cx]; -- 2.7.4