Don't open a null id picture.

This commit is contained in:
Lirusaito
2019-02-01 11:55:15 -05:00
parent b47ff37612
commit d08d2fdec8

View File

@@ -61,7 +61,7 @@
void show_picture(const LLUUID& id, const std::string& name)
{
// Try to show and focus existing preview
if (LLPreview::show(id)) return;
if (id.isNull() || LLPreview::show(id)) return;
// If there isn't one, make a new preview
S32 left, top;
gFloaterView->getNewFloaterPosition(&left, &top);