diff options
| author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2016-08-10 16:32:35 +0300 |
|---|---|---|
| committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2016-08-10 16:32:35 +0300 |
| commit | b496e4ff156ab2fb055e741b97ceda5751476e7f (patch) | |
| tree | 53cc87269eb2981735e2f954d590f289b6e5ada4 /indra/newview/llfloatersnapshot.cpp | |
| parent | 471ff40c2c544158158abebcd88070c3c6aaf4c8 (diff) | |
MAINT-6616 new crash in VOB viewer in snapshot preview
Diffstat (limited to 'indra/newview/llfloatersnapshot.cpp')
| -rw-r--r-- | indra/newview/llfloatersnapshot.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/llfloatersnapshot.cpp b/indra/newview/llfloatersnapshot.cpp index a0e54e47b6..48c44b88fc 100644 --- a/indra/newview/llfloatersnapshot.cpp +++ b/indra/newview/llfloatersnapshot.cpp @@ -1255,7 +1255,7 @@ void LLFloaterSnapshotBase::ImplBase::updateLivePreview() //static void LLFloaterSnapshot::update() { - LLFloaterSnapshot* inst = getInstance(); + LLFloaterSnapshot* inst = findInstance(); if (inst != NULL) { inst->impl->updateLivePreview(); @@ -1263,6 +1263,12 @@ void LLFloaterSnapshot::update() } // static +LLFloaterSnapshot* LLFloaterSnapshot::findInstance() +{ + return LLFloaterReg::findTypedInstance<LLFloaterSnapshot>("snapshot"); +} + +// static LLFloaterSnapshot* LLFloaterSnapshot::getInstance() { return LLFloaterReg::getTypedInstance<LLFloaterSnapshot>("snapshot"); |
