]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmltag.cpp
fixed the menu bug introduced by the previous commit
[wxWidgets.git] / src / html / htmltag.cpp
index 4e042c993f9df14aca155cfd476002e8ef2720fd..85fa7286ee5bb4ad1dfd91fb14db3464f9bca16b 100644 (file)
@@ -26,6 +26,7 @@
 
 #include "wx/html/htmltag.h"
 #include "wx/html/htmlpars.h"
 
 #include "wx/html/htmltag.h"
 #include "wx/html/htmlpars.h"
+#include "wx/colour.h"
 #include <stdio.h> // for vsscanf
 #include <stdarg.h>
 
 #include <stdio.h> // for vsscanf
 #include <stdarg.h>
 
@@ -331,7 +332,9 @@ wxString wxHtmlTag::GetParam(const wxString& par, bool with_commas) const
         return m_ParamValues[index];
 }
 
         return m_ParamValues[index];
 }
 
-int wxHtmlTag::ScanParam(const wxString& par, wxChar *format, void *param) const
+int wxHtmlTag::ScanParam(const wxString& par,
+                         const wxChar *format,
+                         void *param) const
 {
     wxString parval = GetParam(par);
     return wxSscanf(parval, format, param);
 {
     wxString parval = GetParam(par);
     return wxSscanf(parval, format, param);
@@ -375,8 +378,9 @@ bool wxHtmlTag::GetParamAsColour(const wxString& par, wxColour *clr) const
         HTML_COLOUR("teal",    0x00,0x80,0x80)
         HTML_COLOUR("aqua",    0x00,0xFF,0xFF)
         #undef HTML_COLOUR
         HTML_COLOUR("teal",    0x00,0x80,0x80)
         HTML_COLOUR("aqua",    0x00,0xFF,0xFF)
         #undef HTML_COLOUR
-        return FALSE;
     }
     }
+
+    return FALSE;
 }
 
 bool wxHtmlTag::GetParamAsInt(const wxString& par, int *clr) const
 }
 
 bool wxHtmlTag::GetParamAsInt(const wxString& par, int *clr) const