From b7ba4ccf9017281c48b47be5988f2fb46dee2c1f Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Tue, 20 Oct 2009 13:40:05 +0200 Subject: Fixed crash in Lance under Mac OS X without graphics system --- tests/arthur/lance/widgets.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/arthur/lance/widgets.h b/tests/arthur/lance/widgets.h index ea1482f..7c17bc5 100644 --- a/tests/arthur/lance/widgets.h +++ b/tests/arthur/lance/widgets.h @@ -236,7 +236,12 @@ public: } if (m_render_view.isNull()) { - m_render_view = T::window()->windowSurface()->grabWidget(this); + + if (T::window()->windowSurface()) + m_render_view = T::window()->windowSurface()->grabWidget(this); + else + m_render_view = QPixmap::grabWidget(this); + m_render_view.save("renderView.png"); } } -- cgit v0.12