summaryrefslogtreecommitdiff
path: root/indra/newview/llinspectobject.cpp
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2009-12-10 10:45:05 -0800
committerJames Cook <james@lindenlab.com>2009-12-10 10:45:05 -0800
commit1ad033d7fc6076f244f4664b1c778e36263d13af (patch)
tree20f5963bc013a2c34af74b791b4fe9eeb5dc24ab /indra/newview/llinspectobject.cpp
parent722cd44d163f7195d361f249d0e455a5e4e9d674 (diff)
EXT-1398 Objects with long descriptions flip between showing 3 lines and 4 lines
Converted to use new clip_partial text attribute instead of custom text clipping logic. Reviewed with Richard.
Diffstat (limited to 'indra/newview/llinspectobject.cpp')
-rw-r--r--indra/newview/llinspectobject.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/indra/newview/llinspectobject.cpp b/indra/newview/llinspectobject.cpp
index 42d061ff72..cb35a287e9 100644
--- a/indra/newview/llinspectobject.cpp
+++ b/indra/newview/llinspectobject.cpp
@@ -416,18 +416,6 @@ void LLInspectObject::updateDescription(LLSelectNode* nodep)
LLTextBox* textbox = getChild<LLTextBox>("object_description");
textbox->setValue(desc);
-
- // Truncate description text to fit in widget
- // *HACK: OMG, use lower-left corner to truncate text
- // Don't round the position, we want the left of the character
- S32 corner_index = textbox->getDocIndexFromLocalCoord( 0, 0, FALSE);
- LLWString desc_wide = textbox->getWText();
- // index == length if position is past last character
- if (corner_index < (S32)desc_wide.length())
- {
- desc_wide = desc_wide.substr(0, corner_index);
- textbox->setWText(desc_wide);
- }
}
void LLInspectObject::updateMediaCurrentURL()