summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-27 16:40:05 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-27 16:40:05 (GMT)
commitdc9fb7ea530356adb5953233b397cf6f58c63609 (patch)
treeac3f9569757b91704321196a7476d532386b39da
parenteaafa9317b3a7c31c711217521c531aabeba2d4d (diff)
Fix reading raw files bugs
-rw-r--r--kstars/indi/indiccd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kstars/indi/indiccd.cpp b/kstars/indi/indiccd.cpp
index fea10a7..08d7ea1 100644
--- a/kstars/indi/indiccd.cpp
+++ b/kstars/indi/indiccd.cpp
@@ -1096,7 +1096,7 @@ void CCD::processBLOB(IBLOB* bp)
BType = BLOB_IMAGE;
else if (format.contains("fits"))
BType = BLOB_FITS;
- else if (RAWFormats.contains(format))
+ else if (RAWFormats.contains(fmt))
BType = BLOB_RAW;
if (BType == BLOB_OTHER)
@@ -1223,7 +1223,7 @@ void CCD::processBLOB(IBLOB* bp)
LibRaw RawProcessor;
// Let us open the file
- if( (ret = RawProcessor.open_file(rawFileName.toLatin1().data())) != LIBRAW_SUCCESS)
+ if( (ret = RawProcessor.open_file(filename.toLatin1().data())) != LIBRAW_SUCCESS)
{
KStars::Instance()->statusBar()->showMessage(i18n("Cannot open %1: %2", rawFileName, libraw_strerror(ret)));
RawProcessor.recycle();