Skip to content
Snippets Groups Projects
Commit 39ef9e9d authored by Richard Linden's avatar Richard Linden
Browse files

EXT-6492 - button halign=center doesn't take into account left and right pad

parent 2be2fdca
No related branches found
No related tags found
No related merge requests found
......@@ -824,7 +824,7 @@ void LLButton::draw()
x = text_right;
break;
case LLFontGL::HCENTER:
x = getRect().getWidth() / 2;
x = text_left + (text_width / 2);
break;
case LLFontGL::LEFT:
default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment