summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-11-13 05:56:06 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-11-13 05:56:06 (GMT)
commitc29ef8466cdca80e4b1a34245a48dd3389e2b14f (patch)
tree294a8d9eb6d1743e3e5645b935cf6ef0283143fa
parenteb2453ac7954c5c0a8da5749591f2d37faf497e9 (diff)
Fix ifdefs to compile without cfitsio/lite
REVIEW:129387
-rw-r--r--kstars/options/opscolors.cpp9
-rw-r--r--kstars/skycomponents/starblock.cpp6
2 files changed, 12 insertions, 3 deletions
diff --git a/kstars/options/opscolors.cpp b/kstars/options/opscolors.cpp
index 8f68584..56c7a11 100644
--- a/kstars/options/opscolors.cpp
+++ b/kstars/options/opscolors.cpp
@@ -17,6 +17,8 @@
#include "opscolors.h"
+#include <config-kstars.h>
+
#include <QFile>
#include <QPixmap>
#include <QTextStream>
@@ -36,8 +38,12 @@
#include "kstarsdata.h"
#include "skymap.h"
#include "colorscheme.h"
+
+#ifdef HAVE_CFITSIO
#include "fitsviewer/fitsviewer.h"
#include "fitsviewer/fitsview.h"
+#endif
+
#include "skyobjects/starobject.h"
static int ItemColorData = Qt::UserRole + 1;
@@ -129,10 +135,13 @@ void OpsColors::newColor( QListWidgetItem *item ) {
}
KStars::Instance()->map()->forceUpdate();
+
+ #ifdef HAVE_CFITSIO
QList<FITSViewer *> viewers = KStars::Instance()->findChildren<FITSViewer *>();
foreach(FITSViewer *viewer, viewers){
viewer->getCurrentView()->updateFrame();
}
+ #endif
}
void OpsColors::slotPreset( int index ) {
diff --git a/kstars/skycomponents/starblock.cpp b/kstars/skycomponents/starblock.cpp
index 2a28ff2..d8d13aa 100644
--- a/kstars/skycomponents/starblock.cpp
+++ b/kstars/skycomponents/starblock.cpp
@@ -15,16 +15,16 @@
* *
***************************************************************************/
+#include <QDebug>
+
#include "starblock.h"
#include "skyobjects/starobject.h"
#include "starcomponent.h"
#include "skyobjects/stardata.h"
#include "skyobjects/deepstardata.h"
-#include "skymaplite.h"
-
-#include <QDebug>
#ifdef KSTARS_LITE
+#include "skymaplite.h"
#include "kstarslite/skyitems/skynodes/pointsourcenode.h"
StarNode::StarNode()