]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xml/xml.cpp
Only call GetTextMetrics() in wxDC::GetTextExtent() if necessary.
[wxWidgets.git] / src / xml / xml.cpp
index 1917c27ba81e9a4c104c1e67f3a12ba9deee2adf..534777558a3aeb965e35df5389352c7ec040d923 100644 (file)
@@ -885,7 +885,7 @@ bool OutputIndentation(wxOutputStream& stream,
                        wxMBConv *convFile)
 {
     wxString str(wxS("\n"));
-    str += wxString(2*indent, wxS(' '));
+    str += wxString(indent, wxS(' '));
     return OutputString(stream, str, convMem, convFile);
 }