Fix crash signature 230
This commit is contained in:
@@ -262,15 +262,13 @@ void LLPreview::draw()
|
|||||||
{
|
{
|
||||||
mDirty = FALSE;
|
mDirty = FALSE;
|
||||||
const LLViewerInventoryItem *item = getItem();
|
const LLViewerInventoryItem *item = getItem();
|
||||||
if (item)
|
refreshFromItem(item);
|
||||||
{
|
|
||||||
refreshFromItem(item);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void LLPreview::refreshFromItem(const LLInventoryItem* item)
|
void LLPreview::refreshFromItem(const LLInventoryItem* item)
|
||||||
{
|
{
|
||||||
|
if (!item) return;
|
||||||
setTitle(llformat("%s: %s",getTitleName(),item->getName().c_str()));
|
setTitle(llformat("%s: %s",getTitleName(),item->getName().c_str()));
|
||||||
childSetText("desc",item->getDescription());
|
childSetText("desc",item->getDescription());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user