summaryrefslogtreecommitdiff
path: root/indra/llui/llbutton.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2010-04-01 14:56:53 -0700
committerRichard Linden <none@none>2010-04-01 14:56:53 -0700
commit39ef9e9dd6cbeb26b7e223888a17380a272370bb (patch)
tree121ae19d82cadda06b479d7d0db400c9fd8a5365 /indra/llui/llbutton.cpp
parent2be2fdca5c334b787b8019d7226a48e1d5eaec91 (diff)
EXT-6492 - button halign=center doesn't take into account left and right pad
Diffstat (limited to 'indra/llui/llbutton.cpp')
-rw-r--r--indra/llui/llbutton.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llui/llbutton.cpp b/indra/llui/llbutton.cpp
index 1d4dc35cee..33c6a8b6ac 100644
--- a/indra/llui/llbutton.cpp
+++ b/indra/llui/llbutton.cpp
@@ -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: