diff --git a/src/common/dcsvg.cpp b/src/common/dcsvg.cpp index 5157f043eb..76a79736ac 100644 --- a/src/common/dcsvg.cpp +++ b/src/common/dcsvg.cpp @@ -31,7 +31,9 @@ #include "wx/mstream.h" #include "wx/scopedarray.h" -#include "wx/private/markupparser.h" +#if wxUSE_MARKUP + #include "wx/private/markupparser.h" +#endif // ---------------------------------------------------------- // Global utilities @@ -636,7 +638,11 @@ void wxSVGFileDCImpl::DoDrawRotatedText(const wxString& sText, wxCoord x, wxCoor s += wxBrushString(m_textForegroundColour) + wxPenString(m_textForegroundColour); s += wxString::Format(wxS("stroke-width:0;\" transform=\"rotate(%s %d %d)\""), NumStr(-angle), xx, yy); s += wxS(" xml:space=\"preserve\">"); - s += wxMarkupParser::Quote(lines[lineNum]) + wxS("\n"); + #if wxUSE_MARKUP + s += wxMarkupParser::Quote(lines[lineNum]) + wxS("\n"); + #else + s += lines[lineNum] + wxS("\n"); + #endif write(s); }