From c38a8f960edbc85245408e3b809c81182c97a91b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 4 Oct 2018 16:39:40 +0200 Subject: [PATCH] Fix wxGTK build with wxUSE_DISPLAY==0 Add the missing "new" keyword. --- src/gtk/display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtk/display.cpp b/src/gtk/display.cpp index dda71d6dcf..5f9c28c2d5 100644 --- a/src/gtk/display.cpp +++ b/src/gtk/display.cpp @@ -298,7 +298,7 @@ protected: wxDisplayFactory* wxDisplay::CreateFactory() { - return wxDisplayFactorySingleGTK; + return new wxDisplayFactorySingleGTK; } #endif // wxUSE_DISPLAY/!wxUSE_DISPLAY