diff options
| author | Igor Borovkov <iborovkov@productengine.com> | 2010-04-02 17:24:44 +0300 |
|---|---|---|
| committer | Igor Borovkov <iborovkov@productengine.com> | 2010-04-02 17:24:44 +0300 |
| commit | 16b22d4abe99f8b43628db9db8142d65f431b062 (patch) | |
| tree | 079db718f06c6ed35267db5fe35b1dbd7f2de28f /indra/llui/llbutton.cpp | |
| parent | f4f05ad4dfc1ae47ffad0c9e2d26c4123d7f42c1 (diff) | |
| parent | 7d38dd51c2a59d173bee9c04737002313f4b9dec (diff) | |
merge
--HG--
branch : product-engine
Diffstat (limited to 'indra/llui/llbutton.cpp')
| -rw-r--r-- | indra/llui/llbutton.cpp | 2 |
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: |
