X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9eefb5c14a2ca47fd6042f0c41ce8efde6746b3d..1bcef6701be81d1f4473eb5a297bdf20fa292d98:/include/wx/dcsvg.h diff --git a/include/wx/dcsvg.h b/include/wx/dcsvg.h index cae6308db4..dc541ae799 100644 --- a/include/wx/dcsvg.h +++ b/include/wx/dcsvg.h @@ -186,16 +186,18 @@ private: void Init (const wxString &filename, int width, int height, double dpi); - void NewGraphics(); - void write( const wxString &s ); private: + // If m_graphics_changed is true, close the current element and start a + // new one for the last pen/brush change. + void NewGraphicsIfNeeded(); + wxFileOutputStream *m_outfile; wxString m_filename; int m_sub_images; // number of png format images we have bool m_OK; - bool m_graphics_changed; + bool m_graphics_changed; // set by Set{Brush,Pen}() int m_width, m_height; double m_dpi;