diff options
-rw-r--r-- | linden/indra/newview/llpreviewtexture.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linden/indra/newview/llpreviewtexture.cpp b/linden/indra/newview/llpreviewtexture.cpp index dcbb669..6627579 100644 --- a/linden/indra/newview/llpreviewtexture.cpp +++ b/linden/indra/newview/llpreviewtexture.cpp | |||
@@ -316,6 +316,12 @@ void LLPreviewTexture::saveAs() | |||
316 | } | 316 | } |
317 | // remember the user-approved/edited file name. | 317 | // remember the user-approved/edited file name. |
318 | mSaveFileName = file_picker.getFirstFile(); | 318 | mSaveFileName = file_picker.getFirstFile(); |
319 | std::string filename = mSaveFileName; | ||
320 | LLStringUtil::toLower(filename); | ||
321 | if (filename.find(".tga") != filename.length() - 4) | ||
322 | { | ||
323 | mSaveFileName += ".tga"; | ||
324 | } | ||
319 | mLoadingFullImage = TRUE; | 325 | mLoadingFullImage = TRUE; |
320 | getWindow()->incBusyCount(); | 326 | getWindow()->incBusyCount(); |
321 | mImage->setLoadedCallback( LLPreviewTexture::onFileLoadedForSave, | 327 | mImage->setLoadedCallback( LLPreviewTexture::onFileLoadedForSave, |