From 346b876eb7c01ae0bcf00bef4874b2e20b10359c Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Tue, 13 Jul 2021 17:10:13 -0400 Subject: [PATCH] Fix Coverity issue #332157. --- common/project/project_local_settings.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/project/project_local_settings.cpp b/common/project/project_local_settings.cpp index 9fcbb8c959..e43cbcc4d7 100644 --- a/common/project/project_local_settings.cpp +++ b/common/project/project_local_settings.cpp @@ -373,6 +373,11 @@ void PROJECT_LOCAL_SETTINGS::SaveFileState( const wxString& aFileName, fileState.fileName = aFileName; fileState.open = false; fileState.window.maximized = false; + fileState.window.size_x = -1; + fileState.window.size_y = -1; + fileState.window.pos_x = -1; + fileState.window.pos_y = -1; + fileState.window.display = 0; m_files.push_back( fileState );