From: <pst...@us...> - 2011-07-27 14:22:19
|
Revision: 844 http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=844&view=rev Author: pstieber Date: 2011-07-27 14:22:13 +0000 (Wed, 27 Jul 2011) Log Message: ----------- Fixed drum set reading. Modified Paths: -------------- trunk/jazz/src/Configuration.cpp Modified: trunk/jazz/src/Configuration.cpp =================================================================== --- trunk/jazz/src/Configuration.cpp 2011-07-27 01:43:39 UTC (rev 843) +++ trunk/jazz/src/Configuration.cpp 2011-07-27 14:22:13 UTC (rev 844) @@ -917,6 +917,10 @@ int Value; istringstream Iss(InputLine); Iss >> Value; + if (Iss.fail()) + { + cout << "Unable to read index." << endl; + } if (gpConfig->GetValue(C_UseTwoCommandBankSelect)) { @@ -928,6 +932,9 @@ } mDrumSets[DrumsetIndex + 1].second = Value + 1; + string SetName; + Iss >> SetName; + string DrumSetName = TNStringUtilities::TrimLeadingAndTrailingBlanks(Iss.str()); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |