From e469ab2f1940cb04b53bb3b72cc7b5a0cd0669b0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 18 Aug 2016 18:51:15 +0300 Subject: Add some clang fixes. --- src/render/graphics_calcImageRect.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/render') diff --git a/src/render/graphics_calcImageRect.hpp b/src/render/graphics_calcImageRect.hpp index c33ec94e6..a0cc73ff7 100644 --- a/src/render/graphics_calcImageRect.hpp +++ b/src/render/graphics_calcImageRect.hpp @@ -68,7 +68,8 @@ if (top && left && bottom && right) calcPatternInline(vert, right, x + w - rw, y + th, rw, h - th - bh); } -calcTileVertexesInline(vert, topLeft, x, y); +if (topLeft) + calcTileVertexesInline(vert, topLeft, x, y); if (topRight) { const int trw = topRight->getWidth(); -- cgit v1.2.3-70-g09d2