MAINT-7757 FIXED [MAC] Crash in LLViewerWindow::saveImageNumbered

meow-7.2.2
Mnikolenko Productengine 2017-08-30 11:12:52 +03:00
parent 8f49a267da
commit 4cc9762893
1 changed files with 5 additions and 0 deletions

View File

@ -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));