X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1d8cdcf2e39810b8e6128ac8a504cc206068f58c..88ed20a2fa4f57266013611975d973314634d20b:/src/common/dcbase.cpp diff --git a/src/common/dcbase.cpp b/src/common/dcbase.cpp index 415b71763a..807c0cae30 100644 --- a/src/common/dcbase.cpp +++ b/src/common/dcbase.cpp @@ -1205,6 +1205,12 @@ void wxDC::DrawLabel(const wxString& text, yUnderscore = 0; // split the string into lines and draw each of them separately + // + // NB: while wxDC::DrawText() on some platforms supports drawing multi-line + // strings natively, this is not the case for all of them, notably not + // wxMSW which uses this function for multi-line texts, so we may only + // call DrawText() for single-line strings from here to avoid infinite + // recursion. wxString curLine; for ( wxString::const_iterator pc = text.begin(); ; ++pc ) {