]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmlpars.cpp
corrected #ifdefs testing wxUSE_UNICODE_MSLU
[wxWidgets.git] / src / html / htmlpars.cpp
index 296138bb67fc018b8d908a8dd42dd2e9f05c9b44..3b14f68f30bff7910df556bad62ea08959565bfe 100644 (file)
@@ -309,14 +309,10 @@ void wxHtmlParser::DoParsing(int begin_pos, int end_pos)
         }
         else if (m_CurTag)
         {
-            // Add tag:
-            if (m_CurTag)
-            {
-                if (m_CurTag->HasEnding())
-                    begin_pos = m_CurTag->GetEndPos2();
-                else
-                    begin_pos = m_CurTag->GetBeginPos();
-            }
+            if (m_CurTag->HasEnding())
+                begin_pos = m_CurTag->GetEndPos2();
+            else
+                begin_pos = m_CurTag->GetBeginPos();
             wxHtmlTag *t = m_CurTag;
             m_CurTag = m_CurTag->GetNextTag();
             AddTag(*t);