- Improved ImageMagick detection and it should be able to build without it too now

This commit is contained in:
Christophe Dumez 2007-08-29 10:20:39 +00:00
parent 99268bfc06
commit 2ddcaf008b
5 changed files with 150 additions and 80 deletions

View file

@ -41,7 +41,7 @@
#include "misc.h"
#include "downloadThread.h"
#ifndef NO_MAGICK
#ifdef HAVE_MAGICK
#include <Magick++.h>
using namespace Magick;
#endif
@ -389,7 +389,7 @@ class RssManager : public QObject{
if(url.endsWith("favicon.ico")){
// Icon downloaded
QImage fileIcon;
#ifndef NO_MAGICK
#ifdef HAVE_MAGICK
try{
QFile::copy(path, path+".ico");
Image image(QDir::cleanPath(path+".ico").toUtf8().data());