Commit 047c5f00 authored by Jasem Mutlaq's avatar Jasem Mutlaq
Browse files

No need to apply autostretch here, it is done in FITSView

parent 2bbff882
......@@ -1258,23 +1258,18 @@ void CCD::processBLOB(IBLOB* bp)
previewTitle = i18n("Preview");
}
int tabRC = -1;
switch (targetChip->getCaptureMode())
{
case FITS_NORMAL:
{
FITSScale actualFilter = captureFilter;
if (Options::autoStretch() && captureFilter == FITS_NONE)
actualFilter = FITS_AUTO_STRETCH;
if (normalTabID == -1 || Options::singlePreviewFITS() == false)
tabRC = fv->addFITS(&fileURL, FITS_NORMAL, actualFilter, previewTitle);
else if (fv->updateFITS(&fileURL, normalTabID, actualFilter) == false)
tabRC = fv->addFITS(&fileURL, FITS_NORMAL, captureFilter, previewTitle);
else if (fv->updateFITS(&fileURL, normalTabID, captureFilter) == false)
{
fv->removeFITS(normalTabID);
tabRC = fv->addFITS(&fileURL, FITS_NORMAL, actualFilter, previewTitle);
tabRC = fv->addFITS(&fileURL, FITS_NORMAL, captureFilter, previewTitle);
}
else
tabRC = normalTabID;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment