From f37529370412e090c40439841aa43e487b4fc0af Mon Sep 17 00:00:00 2001 From: Prince David Date: Mon, 27 Mar 2017 00:27:09 +0200 Subject: [PATCH] Fix wxSVGFileDC build with wxUSE_MARKUP==0 Just add the missing wxUSE_MARKUP checks. --- src/common/dcsvg.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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); }