Fix wxGTK build with wxUSE_DISPLAY==0

Add the missing "new" keyword.
This commit is contained in:
Vadim Zeitlin
2018-10-04 16:39:40 +02:00
parent de840d1813
commit c38a8f960e

View File

@@ -298,7 +298,7 @@ protected:
wxDisplayFactory* wxDisplay::CreateFactory()
{
return wxDisplayFactorySingleGTK;
return new wxDisplayFactorySingleGTK;
}
#endif // wxUSE_DISPLAY/!wxUSE_DISPLAY