Fix Mac build issue

master
Merov Linden 2012-01-16 14:35:00 -08:00
parent cd4204b273
commit 7092a07045
1 changed files with 4 additions and 4 deletions

View File

@ -116,9 +116,9 @@ F32 LLLayoutPanel::getVisibleAmount() const
S32 LLLayoutPanel::getLayoutDim() const
{
return llround((mOrientation == LLLayoutStack::HORIZONTAL)
return llround((F32)((mOrientation == LLLayoutStack::HORIZONTAL)
? getRect().getWidth()
: getRect().getHeight());
: getRect().getHeight()));
}
S32 LLLayoutPanel::getVisibleDim() const
@ -132,9 +132,9 @@ S32 LLLayoutPanel::getVisibleDim() const
void LLLayoutPanel::setOrientation( LLLayoutStack::ELayoutOrientation orientation )
{
mOrientation = orientation;
S32 layout_dim = llround((mOrientation == LLLayoutStack::HORIZONTAL)
S32 layout_dim = llround((F32)((mOrientation == LLLayoutStack::HORIZONTAL)
? getRect().getWidth()
: getRect().getHeight());
: getRect().getHeight()));
if (mMinDim == -1)
{