minor code cleanup
parent
a8fcfc5e19
commit
35d3fa12ba
|
|
@ -139,7 +139,7 @@ bool LLCommandManager::load()
|
|||
|
||||
if (!commandsParams.validateBlock())
|
||||
{
|
||||
llerrs << "Unable to validate commands param block from file: " << commands_file << llendl;
|
||||
llerrs << "Invalid commands file: " << commands_file << llendl;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -840,9 +840,9 @@ void LLFloater::applyRectControl()
|
|||
if (mRectControl.size() > 1)
|
||||
{
|
||||
const LLRect& rect = getControlGroup()->getRect(mRectControl);
|
||||
if (rect.getWidth() > 0 && rect.getHeight() > 0)
|
||||
if (rect.notEmpty())
|
||||
{
|
||||
translate( rect.mLeft - getRect().mLeft, rect.mBottom - getRect().mBottom);
|
||||
setOrigin(rect.mLeft, rect.mBottom);
|
||||
if (mResizable)
|
||||
{
|
||||
reshape(llmax(mMinWidth, rect.getWidth()), llmax(mMinHeight, rect.getHeight()));
|
||||
|
|
|
|||
Loading…
Reference in New Issue