Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions indra/llui/llcombobox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ void LLComboBox::initFromParams(const LLComboBox::Params& p)
// virtual
bool LLComboBox::postBuild()
{
if (mControlVariable)
if (getControlVariable())
{
setValue(mControlVariable->getValue()); // selects the appropriate item
setValue(getControlVariable()->getValue()); // selects the appropriate item
}
return true;
}
Expand Down Expand Up @@ -278,9 +278,9 @@ LLScrollListItem* LLComboBox::add(const std::string& name, EAddPosition pos, boo
item->setEnabled(enabled);
if (!mAllowTextEntry && mLabel.empty())
{
if (mControlVariable)
if (getControlVariable())
{
setValue(mControlVariable->getValue()); // selects the appropriate item
setValue(getControlVariable()->getValue()); // selects the appropriate item
}
else
{
Expand All @@ -297,9 +297,9 @@ LLScrollListItem* LLComboBox::add(const std::string& name, const LLUUID& id, EAd
item->setEnabled(enabled);
if (!mAllowTextEntry && mLabel.empty())
{
if (mControlVariable)
if (getControlVariable())
{
setValue(mControlVariable->getValue()); // selects the appropriate item
setValue(getControlVariable()->getValue()); // selects the appropriate item
}
else
{
Expand All @@ -317,9 +317,9 @@ LLScrollListItem* LLComboBox::add(const std::string& name, void* userdata, EAddP
item->setUserdata( userdata );
if (!mAllowTextEntry && mLabel.empty())
{
if (mControlVariable)
if (getControlVariable())
{
setValue(mControlVariable->getValue()); // selects the appropriate item
setValue(getControlVariable()->getValue()); // selects the appropriate item
}
else
{
Expand All @@ -336,9 +336,9 @@ LLScrollListItem* LLComboBox::add(const std::string& name, LLSD value, EAddPosit
item->setEnabled(enabled);
if (!mAllowTextEntry && mLabel.empty())
{
if (mControlVariable)
if (getControlVariable())
{
setValue(mControlVariable->getValue()); // selects the appropriate item
setValue(getControlVariable()->getValue()); // selects the appropriate item
}
else
{
Expand Down
10 changes: 5 additions & 5 deletions indra/llui/llfolderview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ LLFolderView::LLFolderView(const Params& p)
mAutoOpenCandidate = NULL;
mAutoOpenTimer.stop();
mKeyboardSelection = false;
mIndentation = getParentFolder() ? getParentFolder()->getIndentation() + mLocalIndentation : 0;
mIndentation = getParentFolder() ? getParentFolder()->getIndentation() + mStyle->localIndentation : 0;

//clear label
// go ahead and render root folder as usual
Expand All @@ -230,11 +230,11 @@ LLFolderView::LLFolderView(const Params& p)
// Textbox
LLTextBox::Params text_p;
LLFontGL* font = getLabelFontForStyle(mLabelStyle);
//mIconPad, mTextPad are set in folder_view_item.xml
LLRect new_r = LLRect(rect.mLeft + mIconPad,
rect.mTop - mTextPad,
//icon_pad, text_pad are set in folder_view_item.xml (shared via mStyle)
LLRect new_r = LLRect(rect.mLeft + mStyle->iconPad,
rect.mTop - mStyle->textPad,
rect.mRight,
rect.mTop - mTextPad - font->getLineHeight());
rect.mTop - mStyle->textPad - font->getLineHeight());
text_p.rect(new_r);
text_p.name(std::string(p.name));
text_p.font(font);
Expand Down
Loading