From 7d55df052fe99908664744bb9b1340b4c7b9d718 Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Wed, 8 Jan 2020 09:39:48 +0100 Subject: [PATCH] repaint causes crash on linux --- sandboxes/opencsg/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sandboxes/opencsg/main.cpp b/sandboxes/opencsg/main.cpp index 3922706e74..82efb8ada5 100644 --- a/sandboxes/opencsg/main.cpp +++ b/sandboxes/opencsg/main.cpp @@ -107,12 +107,12 @@ public: const wxSize ClientSize = GetClientSize(); m_display->set_screen_size(ClientSize.x, ClientSize.y); - m_display->repaint(); }); Bind(wxEVT_SIZE, [this](wxSizeEvent &) { const wxSize ClientSize = GetClientSize(); m_display->set_screen_size(ClientSize.x, ClientSize.y); + m_display->repaint(); }); }