CFrameBuffer::paintBoxRel: check boxBuf if not NULL

This commit is contained in:
Jacek Jendrzej
2014-11-06 17:31:11 +01:00
parent d5d6c4de62
commit 644dc460a2

View File

@@ -730,6 +730,9 @@ fb_pixel_t* CFrameBuffer::paintBoxRel(const int x, const int y, const int dx, co
#define MASK 0xFFFFFFFF
fb_pixel_t* boxBuf = paintBoxRel2Buf(dx, dy, MASK, NULL, radius, type);
if (!boxBuf)
return NULL;
fb_pixel_t *bp = boxBuf;
fb_pixel_t *gra = gradientData->gradientBuf;
gradientData->boxBuf = boxBuf;