]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filename.cpp
Add wxBitmap::GetNSImage() which creates an autoreleased NSImage either
[wxWidgets.git] / src / common / filename.cpp
index 062ddc41fb7c7134d514b22f1cf3b61ece76201d..07840e53728785cf418321b007f6b00eb774a7db 100644 (file)
@@ -1270,7 +1270,7 @@ wxString wxFileName::GetPath( int flags, wxPathFormat format ) const
                 // normally the absolute file names start with a slash
                 // with one exception: the ones like "~/foo.bar" don't
                 // have it
-                if ( m_dirs[0u] != _T('~') )
+                if ( m_dirs.IsEmpty() || m_dirs[0u] != _T('~') )
                 {
                     fullpath += wxFILE_SEP_PATH_UNIX;
                 }