summaryrefslogtreecommitdiff
path: root/indra/llmath/llrect.h
diff options
context:
space:
mode:
authorJosh Bell <josh@lindenlab.com>2008-07-22 20:55:02 +0000
committerJosh Bell <josh@lindenlab.com>2008-07-22 20:55:02 +0000
commit35b4a91129bc3da3476e7f9d8d8eb923a621cc3e (patch)
tree2906124fe8371b6336e6f7231cd890d267a75d6d /indra/llmath/llrect.h
parentdf4f20d4f51e41355e876f734527b4245543415c (diff)
svn merge -r92710:92709 svn+ssh://svn.lindenlab.com/svn/linden/release --> release
Undo r92710 (for QAR-698) - went straight into release instead of a side branch for validation.
Diffstat (limited to 'indra/llmath/llrect.h')
-rw-r--r--indra/llmath/llrect.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/llmath/llrect.h b/indra/llmath/llrect.h
index 21ca4189ff..17fa981c7c 100644
--- a/indra/llmath/llrect.h
+++ b/indra/llmath/llrect.h
@@ -183,11 +183,10 @@ public:
LLRectBase& setCenterAndSize(Type x, Type y, Type width, Type height)
{
- // width and height could be odd, so favor top, right with extra pixel
mLeft = x - width/2;
+ mTop = y + height/2;
+ mRight = x + width/2;
mBottom = y - height/2;
- mTop = mBottom + height;
- mRight = mLeft + width;
return *this;
}