]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/m_image.cpp
No real changes, just change type of MSWGetBgBrush() argument.
[wxWidgets.git] / src / html / m_image.cpp
index 43904eac7856f20e531add622d95910c9ba2f629..1bedf04ec0cb648d270eaec1d1bd11bc5ddc56bc 100644 (file)
@@ -651,7 +651,7 @@ TAG_HANDLER_BEGIN(IMG, "IMG,MAP,AREA")
                 if (tag.HasParam(wxT("USEMAP")))
                 {
                     mn = tag.GetParam( wxT("USEMAP") );
-                    if (mn.GetChar(0) == wxT('#'))
+                    if ( !mn.empty() && *mn.begin() == '#' )
                     {
                         mn = mn.Mid( 1 );
                     }