ACME-1318 : Handle No filter a bit more smartly so we don't fail on an unknown filter to do nothing...
parent
51844473c0
commit
5f7e462d0f
|
|
@ -463,7 +463,8 @@ void LLFacebookPhotoPanel::updateResolution(BOOL do_update)
|
|||
S32 width = sdres[0];
|
||||
S32 height = sdres[1];
|
||||
|
||||
const std::string& filter_name = filterbox->getSimple();
|
||||
// Note : index 0 of the filter drop down is assumed to be "No filter" in whichever locale
|
||||
std::string filter_name = (filterbox->getCurrentIndex() ? filterbox->getSimple() : "");
|
||||
|
||||
LLSnapshotLivePreview * previewp = static_cast<LLSnapshotLivePreview *>(mPreviewHandle.get());
|
||||
if (previewp && combobox->getCurrentIndex() >= 0)
|
||||
|
|
|
|||
|
|
@ -360,7 +360,8 @@ void LLFlickrPhotoPanel::updateResolution(BOOL do_update)
|
|||
S32 width = sdres[0];
|
||||
S32 height = sdres[1];
|
||||
|
||||
const std::string& filter_name = filterbox->getSimple();
|
||||
// Note : index 0 of the filter drop down is assumed to be "No filter" in whichever locale
|
||||
std::string filter_name = (filterbox->getCurrentIndex() ? filterbox->getSimple() : "");
|
||||
|
||||
LLSnapshotLivePreview * previewp = static_cast<LLSnapshotLivePreview *>(mPreviewHandle.get());
|
||||
if (previewp && combobox->getCurrentIndex() >= 0)
|
||||
|
|
|
|||
|
|
@ -422,7 +422,8 @@ void LLTwitterPhotoPanel::updateResolution(BOOL do_update)
|
|||
S32 width = sdres[0];
|
||||
S32 height = sdres[1];
|
||||
|
||||
const std::string& filter_name = filterbox->getSimple();
|
||||
// Note : index 0 of the filter drop down is assumed to be "No filter" in whichever locale
|
||||
std::string filter_name = (filterbox->getCurrentIndex() ? filterbox->getSimple() : "");
|
||||
|
||||
LLSnapshotLivePreview * previewp = static_cast<LLSnapshotLivePreview *>(mPreviewHandle.get());
|
||||
if (previewp && combobox->getCurrentIndex() >= 0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue