Skip to content
Snippets Groups Projects
Commit a773cdd6 authored by Simon Linden's avatar Simon Linden
Browse files

Fix linux build

parent dd1bd943
Branches
Tags
No related merge requests found
......@@ -71,8 +71,7 @@ LLPreviewTexture::LLPreviewTexture(const LLSD& key)
mAspectRatio(0.f),
mPreviewToSave(FALSE),
mImage(NULL),
mImageOldBoostLevel(LLGLTexture::BOOST_NONE),
mRatiosList(NULL)
mImageOldBoostLevel(LLGLTexture::BOOST_NONE)
{
updateImageID();
if (key.has("save_as"))
......@@ -551,8 +550,9 @@ void LLPreviewTexture::adjustAspectRatio()
LLComboBox* combo = getChild<LLComboBox>("combo_aspect_ratio");
if (combo)
{
std::string ratio = std::to_string((ULONGLONG)num) + ":" + std::to_string((ULONGLONG)denom);
std::vector<std::string>::const_iterator found = std::find(mRatiosList.begin(), mRatiosList.end(), ratio);
std::ostringstream ratio;
ratio << num << ":" << denom;
std::vector<std::string>::const_iterator found = std::find(mRatiosList.begin(), mRatiosList.end(), ratio.str());
if (found == mRatiosList.end())
{
combo->setCurrentByIndex(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment