Draw: Added missing End() call in StdChLookFn

git-svn-id: svn://ultimatepp.org/upp/trunk@5712 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
unodgs 2013-01-15 18:59:28 +00:00
parent ecc40642c7
commit d8d862aef4

View file

@ -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");