diff --git a/contrib/utils/wxrcedit/editor.cpp b/contrib/utils/wxrcedit/editor.cpp index 383462d1c8..bb2e401403 100644 --- a/contrib/utils/wxrcedit/editor.cpp +++ b/contrib/utils/wxrcedit/editor.cpp @@ -254,7 +254,13 @@ void EditorFrame::LoadFile(const wxString& filename) void EditorFrame::SaveFile(const wxString& filename) { m_FileName = filename; - + + // change version: + wxXmlNode *root = m_Resource->GetRoot(); + root->DeleteProperty(wxT("version")); + root->AddProperty(wxT("version"), wxT(WX_XMLRES_CURRENT_VERSION_STRING)); + + // save it: if (!m_Resource->Save(filename)) wxLogError(_("Error saving ") + filename); else