From 56c31e65f61e9e3fac4c9129238ee62199b28dce Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 18 Apr 2020 12:36:05 +0200 Subject: [PATCH] Fix a compil issue: Try a better fix than commit 8f0449c. --- common/eda_base_frame.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/eda_base_frame.cpp b/common/eda_base_frame.cpp index e16feca645..6da082859c 100644 --- a/common/eda_base_frame.cpp +++ b/common/eda_base_frame.cpp @@ -360,7 +360,9 @@ void EDA_BASE_FRAME::LoadWindowSettings( WINDOW_SETTINGS* aCfg ) wxLogTrace( traceDisplayLocation, "Previous display not found" ); // If it isn't attached, use the first display - wxDisplay display( int( 0 ) ); + // Warning wxDisplay has 2 ctor variants. the parameter needs a type: + const unsigned int index = 0; + wxDisplay display( index ); wxRect clientSize = display.GetClientArea(); wxLogDebug( "Client size (%d, %d)", clientSize.width, clientSize.height );