summaryrefslogtreecommitdiff
path: root/indra/llui/llbutton.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2010-04-01 15:51:24 -0700
committerRichard Linden <none@none>2010-04-01 15:51:24 -0700
commitf252d0d1a0ea9966fa5225e4c6dd64774c2c5444 (patch)
treed15bc414e922d2c01bef184590ed289661217103 /indra/llui/llbutton.cpp
parent51e1c6b78a36cb968b9b3ea3d37a14dbe2609e8a (diff)
parentdcc5e0a4faaf7d877a736ade4a334d1936e71bef (diff)
merge
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: