paysages: Fixed a possible segfault on exit.

git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@227 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
This commit is contained in:
Michaël Lemaire 2012-01-18 19:49:03 +00:00 committed by ThunderK
parent 8c33ce7143
commit a88a0ddaac
3 changed files with 7 additions and 2 deletions

View file

@ -70,6 +70,11 @@ Preview::~Preview()
delete pixbuf;
}
QColor Preview::getColor(double x, double y)
{
return QColor(0, 0, 0);
}
void Preview::doRender()
{
if (this->alive)

View file

@ -21,7 +21,7 @@ public:
protected:
void resizeEvent(QResizeEvent* event);
void paintEvent(QPaintEvent* event);
virtual QColor getColor(double x, double y) = 0;
virtual QColor getColor(double x, double y);
void renderPixbuf();
void forceRender();