equal
deleted
inserted
replaced
61 |
61 |
62 void DrawMapWidget::resizeEvent(QResizeEvent * event) |
62 void DrawMapWidget::resizeEvent(QResizeEvent * event) |
63 { |
63 { |
64 Q_UNUSED(event); |
64 Q_UNUSED(event); |
65 |
65 |
|
66 if(!m_scene) |
|
67 return; |
|
68 |
66 int height = this->height(); |
69 int height = this->height(); |
67 int width = this->width(); |
70 int width = this->width(); |
68 |
71 |
69 if ((m_scene->height() > 0) && (m_scene->width() > 0) && (height > 0)) |
72 if ((m_scene->height() > 0) && (m_scene->width() > 0) && (height > 0)) |
70 { |
73 { |