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:
parent
8c33ce7143
commit
a88a0ddaac
3 changed files with 7 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue