From ccb220600d4a0cda7ecfc89269532476fe570c3c Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 6 May 2001 22:21:43 +0000 Subject: [PATCH] added version saving to wxrcedit git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/utils/wxrcedit/editor.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.50.0