From d8d862aef4fe8db4b88431c5ca6a9bcfd4595e03 Mon Sep 17 00:00:00 2001 From: unodgs Date: Tue, 15 Jan 2013 18:59:28 +0000 Subject: [PATCH] Draw: Added missing End() call in StdChLookFn git-svn-id: svn://ultimatepp.org/upp/trunk@5712 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Draw/Cham.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/uppsrc/Draw/Cham.cpp b/uppsrc/Draw/Cham.cpp index 828a773e7..bc6023f6d 100644 --- a/uppsrc/Draw/Cham.cpp +++ b/uppsrc/Draw/Cham.cpp @@ -274,8 +274,10 @@ Value StdChLookFn(Draw& w, const Rect& r, const Value& v, int op) ChDraw(w, r.right, p.y, sz2.cx, r.Height(), img, RectC(sr.right, p.y, sz2.cx, sr.Height())); if(op == LOOK_PAINT) { - if(IsNull(r) || IsNull(sr)) + if(IsNull(r) || IsNull(sr)) { + w.End(); return 1; + } if(tile) { LTIMING("Ch-Tiles"); LTIMING("Ch-Tiles");