diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2017-08-30 11:12:52 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2017-08-30 11:12:52 +0300 |
commit | 4cc976289318c5ba1c67e871ead5b466d98c0d2e (patch) | |
tree | 6010e6882a9fe796faa4f44cb260fe752c9fed6d /indra/newview | |
parent | 8f49a267da657459510479273f28465f1d34c53b (diff) |
MAINT-7757 FIXED [MAC] Crash in LLViewerWindow::saveImageNumbered
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llviewerwindow.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index a2c5fa2630..b052a48424 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -4401,6 +4401,11 @@ BOOL LLViewerWindow::saveImageNumbered(LLImageFormatted *image, BOOL force_picke LLViewerWindow::sSnapshotDir = gDirUtilp->getDirName(filepath); } + if(LLViewerWindow::sSnapshotDir.empty()) + { + return FALSE; + } + // Check if there is enough free space to save snapshot #ifdef LL_WINDOWS boost::filesystem::space_info b_space = boost::filesystem::space(utf8str_to_utf16str(sSnapshotDir)); |