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:
@@ -1555,7 +1555,7 @@ void WXDLLEXPORT wxSplitPath(const char *pszFileName,
|
|||||||
if ( nPosDot > nPosUnix ) {
|
if ( nPosDot > nPosUnix ) {
|
||||||
// the file name looks like "path/name.ext"
|
// the file name looks like "path/name.ext"
|
||||||
if ( pstrName )
|
if ( pstrName )
|
||||||
*pstrName = wxString(pszFileName + nPosUnix + 1, nPosDot - nPosUnix);
|
*pstrName = wxString(pszFileName + nPosUnix + 1, nPosDot - nPosUnix - 1);
|
||||||
if ( pstrExt )
|
if ( pstrExt )
|
||||||
*pstrExt = wxString(pszFileName + nPosDot + 1);
|
*pstrExt = wxString(pszFileName + nPosDot + 1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user