summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-11-03 14:46:17 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-11-03 14:46:17 (GMT)
commit8e84022f58b84155a45eb6c818472fed11a52c14 (patch)
treebac0383d06743e301d22c9645577e1f1e08880de
parent3435bcf6025f5bb016e62f7e9a5ec3cf4f937fdd (diff)
Compile without WCS
-rw-r--r--kstars/fitsviewer/fitsdata.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/kstars/fitsviewer/fitsdata.cpp b/kstars/fitsviewer/fitsdata.cpp
index a4d9b68..b29f632 100644
--- a/kstars/fitsviewer/fitsdata.cpp
+++ b/kstars/fitsviewer/fitsdata.cpp
@@ -1776,9 +1776,14 @@ bool FITSData::checkWCS()
HasWCS = true;
return HasWCS;
#endif
+
+ return false;
}
-void FITSData::findObjectsInImage(struct wcsprm *wcs, double world[], double phi, double theta, double imgcrd[], double pixcrd[], int stat[]){
+void FITSData::findObjectsInImage(struct wcsprm *wcs, double world[], double phi, double theta, double imgcrd[], double pixcrd[], int stat[])
+{
+ #ifdef HAVE_WCSLIB
+
int width=getWidth();
int height=getHeight();
int status=0;
@@ -1849,6 +1854,8 @@ void FITSData::findObjectsInImage(struct wcsprm *wcs, double world[], double phi
delete (num);
+#endif
+
}
QList<FITSSkyObject *> FITSData::getSkyObjects(){