diff --git a/project/src/common/TextField.cpp b/project/src/common/TextField.cpp index e1c949632..7b0b11268 100644 --- a/project/src/common/TextField.cpp +++ b/project/src/common/TextField.cpp @@ -1887,9 +1887,9 @@ void TextField::Render( const RenderTarget &inTarget, const RenderState &inState { while(line= cid) line++; - if (pos.y>fieldHeight) - break; double lineY = pos.y + mLines[line].mMetrics.ascent; + if (lineY>fieldHeight) + break; if (pos.y>=GAP) { pos.y = lineY;