summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2017-08-30 11:12:52 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2017-08-30 11:12:52 +0300
commit4cc976289318c5ba1c67e871ead5b466d98c0d2e (patch)
tree6010e6882a9fe796faa4f44cb260fe752c9fed6d
parent8f49a267da657459510479273f28465f1d34c53b (diff)
MAINT-7757 FIXED [MAC] Crash in LLViewerWindow::saveImageNumbered
-rw-r--r--indra/newview/llviewerwindow.cpp5
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));