From 8d6665b5c2ac1d42d72dab025623d3ae14291ccb Mon Sep 17 00:00:00 2001 From: Vadim ProductEngine Date: Thu, 2 Feb 2012 13:29:24 +0200 Subject: Restoring a call to llround() in lllineeditor.cpp mistakenly removed in changeset 0a9ef58e8f7d. By the way, removing a pointless call to llround() in lldraghandle.cpp. --- indra/llui/lllineeditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra/llui/lllineeditor.cpp') diff --git a/indra/llui/lllineeditor.cpp b/indra/llui/lllineeditor.cpp index c53fb40ca2..d600f58b96 100644 --- a/indra/llui/lllineeditor.cpp +++ b/indra/llui/lllineeditor.cpp @@ -1630,7 +1630,7 @@ void LLLineEditor::draw() LLRect background( 0, getRect().getHeight(), getRect().getWidth(), 0 ); background.stretch( -mBorderThickness ); - S32 lineeditor_v_pad = (background.getHeight() - mGLFont->getLineHeight())/2; + S32 lineeditor_v_pad = llround(((F32)background.getHeight() - mGLFont->getLineHeight())/2); drawBackground(); -- cgit v1.2.3