bug in wxSplitPath() corrected: the returned file name doesn't have the
trailing dot any more git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
7f42cff13e
commit
debdd17e99
@ -1555,7 +1555,7 @@ void WXDLLEXPORT wxSplitPath(const char *pszFileName,
|
||||
if ( nPosDot > nPosUnix ) {
|
||||
// the file name looks like "path/name.ext"
|
||||
if ( pstrName )
|
||||
*pstrName = wxString(pszFileName + nPosUnix + 1, nPosDot - nPosUnix);
|
||||
*pstrName = wxString(pszFileName + nPosUnix + 1, nPosDot - nPosUnix - 1);
|
||||
if ( pstrExt )
|
||||
*pstrExt = wxString(pszFileName + nPosDot + 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user