Fix wxSVGFileDC build with wxUSE_MARKUP==0

Just add the missing wxUSE_MARKUP checks.
This commit is contained in:
Prince David 2017-03-27 00:27:09 +02:00 committed by VZ
parent 716f42b416
commit f375293704

View File

@ -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("</text>\n");
#if wxUSE_MARKUP
s += wxMarkupParser::Quote(lines[lineNum]) + wxS("</text>\n");
#else
s += lines[lineNum] + wxS("</text>\n");
#endif
write(s);
}