and not in both this and the orthogonal directions. This behaviour is what
most of the people expect but if you really relied on this overload adding
space in both directions you should change your code to use AddSpacer(x, x).
-
+
- wxTextCtrl::LoadFile no longer sends a text update event.
+- wxXmlDocument::Save()'s indentstep argument's interpretation was fixed
+ to match the documentation: it now really is the number of spaces in
+ indentation instead of being its double. Its default value was changed
+ accordingly, to 2.
+
Changes in behaviour which may result in compilation errors
-----------------------------------------------------------
const wxString& encoding = wxT("UTF-8"), int flags = wxXMLDOC_NONE);
// Saves document as .xml file.
- virtual bool Save(const wxString& filename, int indentstep = 1) const;
- virtual bool Save(wxOutputStream& stream, int indentstep = 1) const;
+ virtual bool Save(const wxString& filename, int indentstep = 2) const;
+ virtual bool Save(wxOutputStream& stream, int indentstep = 2) const;
bool IsOk() const { return m_root != NULL; }
If @a indentstep is @c wxXML_NO_INDENTATION, then, automatic indentation
is turned off.
*/
- virtual bool Save(const wxString& filename, int indentstep = 1) const;
+ virtual bool Save(const wxString& filename, int indentstep = 2) const;
/**
Saves XML tree in the given output stream.
See Save(const wxString&, int) for a description of @a indentstep.
*/
- virtual bool Save(wxOutputStream& stream, int indentstep = 1) const;
+ virtual bool Save(wxOutputStream& stream, int indentstep = 2) const;
/**
Sets the enconding of the document.
wxMBConv *convFile)
{
wxString str(wxS("\n"));
- str += wxString(2*indent, wxS(' '));
+ str += wxString(indent, wxS(' '));
return OutputString(stream, str, convMem, convFile);
}