]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/private/wxprintf.h
Call Expand on an item's parent chain in EnsureVisible
[wxWidgets.git] / include / wx / private / wxprintf.h
index f79798181226dec23a77e0537f9c720440f6a3db..4b7b89045468965e630cc0615f47eb850488c80e 100644 (file)
@@ -17,6 +17,8 @@
 // ---------------------------------------------------------------------------
 
 #include "wx/crt.h"
+#include "wx/log.h"
+#include "wx/utils.h"
 
 #include <string.h>
 
@@ -252,7 +254,11 @@ bool wxPrintfConvSpec<CharType>::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;