X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/473464069216bb835735a6c164ee769679a0ab03..0cd159592e4d9c979aa5a626627cdd9158fcc34f:/include/wx/private/wxprintf.h diff --git a/include/wx/private/wxprintf.h b/include/wx/private/wxprintf.h index f797981812..4b7b890454 100644 --- a/include/wx/private/wxprintf.h +++ b/include/wx/private/wxprintf.h @@ -17,6 +17,8 @@ // --------------------------------------------------------------------------- #include "wx/crt.h" +#include "wx/log.h" +#include "wx/utils.h" #include @@ -252,7 +254,11 @@ bool wxPrintfConvSpec::Parse(const CharType *format) break; case wxT('.'): - CHECK_PREC + // don't use CHECK_PREC here to avoid warning about the value + // assigned to prec_dot inside it being never used (because + // overwritten just below) from Borland in release build + if (in_prec && !prec_dot) + m_szFlags[flagofs++] = '.'; in_prec = true; prec_dot = false; m_nMaxWidth = 0;