]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fs_arc.cpp
Fix wxWrapSizer minimal size calculation.
[wxWidgets.git] / src / common / fs_arc.cpp
index 7511c8704cafafe919f48586234f2a6ebe4f8ae4..6007d08ab1b8b8d1412533ed33facb085fd06b87 100644 (file)
@@ -358,7 +358,7 @@ wxFSFile* wxArchiveFSHandler::OpenFile(
         right = rightPart.GetFullPath(wxPATH_UNIX);
     }
 
-    if (right.GetChar(0) == wxT('/')) right = right.Mid(1);
+    if (!right.empty() && right.GetChar(0) == wxT('/')) right = right.Mid(1);
 
     if (!m_cache)
         m_cache = new wxArchiveFSCache;