From: <ste...@us...> - 2013-01-03 11:41:52
|
Revision: 3292 http://moneymanagerex.svn.sourceforge.net/moneymanagerex/?rev=3292&view=rev Author: stef145g Date: 2013-01-03 11:41:46 +0000 (Thu, 03 Jan 2013) Log Message: ----------- fix for wx29 Modified Paths: -------------- trunk/mmex/src/customreportindex.cpp Modified: trunk/mmex/src/customreportindex.cpp =================================================================== --- trunk/mmex/src/customreportindex.cpp 2013-01-03 09:59:47 UTC (rev 3291) +++ trunk/mmex/src/customreportindex.cpp 2013-01-03 11:41:46 UTC (rev 3292) @@ -176,7 +176,8 @@ void customSQLReportIndex::SetNewCurrentFileValues() { - currentReportFileExt_ = currentReportFileName_.substr(currentReportFileName_.Length()-4); + wxFileName fn(currentReportFileName_); + currentReportFileExt_ = fn.GetExt(); currentReportFileExt_.MakeUpper(); if (currentReportFileExt_ == wxT(".SQL")) currentReportFileType_ = wxT("SQL"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |