summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-08-11 22:12:55 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-08-11 22:12:55 (GMT)
commit047c5f00330163c5f8ab47741c62d302a8c067cf (patch)
treeed358f04717fa3246cdcadb73124490dae043601
parent2bbff8827bc3463bc91bf2c7419da9d9d23ddb24 (diff)
No need to apply autostretch here, it is done in FITSView
-rw-r--r--kstars/indi/indiccd.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/kstars/indi/indiccd.cpp b/kstars/indi/indiccd.cpp
index 8454068..ff3f410 100644
--- a/kstars/indi/indiccd.cpp
+++ b/kstars/indi/indiccd.cpp
@@ -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;