Skip to content

Commit 88b6187

Browse files
authored
Merge pull request #297 from AlchemyViewer/rye/folderview-memory
Reduce LLFolderView per-item memory + fix three folderview defects
2 parents afae804 + 61ccaf9 commit 88b6187

5 files changed

Lines changed: 176 additions & 71 deletions

File tree

indra/llui/llfolderview.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ LLFolderView::LLFolderView(const Params& p)
207207
mAutoOpenCandidate = NULL;
208208
mAutoOpenTimer.stop();
209209
mKeyboardSelection = false;
210-
mIndentation = getParentFolder() ? getParentFolder()->getIndentation() + mLocalIndentation : 0;
210+
mIndentation = getParentFolder() ? getParentFolder()->getIndentation() + mStyle->localIndentation : 0;
211211

212212
//clear label
213213
// go ahead and render root folder as usual
@@ -230,11 +230,11 @@ LLFolderView::LLFolderView(const Params& p)
230230
// Textbox
231231
LLTextBox::Params text_p;
232232
LLFontGL* font = getLabelFontForStyle(mLabelStyle);
233-
//mIconPad, mTextPad are set in folder_view_item.xml
234-
LLRect new_r = LLRect(rect.mLeft + mIconPad,
235-
rect.mTop - mTextPad,
233+
//icon_pad, text_pad are set in folder_view_item.xml (shared via mStyle)
234+
LLRect new_r = LLRect(rect.mLeft + mStyle->iconPad,
235+
rect.mTop - mStyle->textPad,
236236
rect.mRight,
237-
rect.mTop - mTextPad - font->getLineHeight());
237+
rect.mTop - mStyle->textPad - font->getLineHeight());
238238
text_p.rect(new_r);
239239
text_p.name(std::string(p.name));
240240
text_p.font(font);

0 commit comments

Comments
 (0)