From: <rel...@us...> - 2009-06-08 21:23:56
|
Revision: 265 http://modplug.svn.sourceforge.net/modplug/?rev=265&view=rev Author: relabsoluness Date: 2009-06-08 21:22:25 +0000 (Mon, 08 Jun 2009) Log Message: ----------- . General tab: Fixes channel controls that got badly broken in rev. 263. Modified Paths: -------------- trunk/OpenMPT/mptrack/View_gen.cpp Modified: trunk/OpenMPT/mptrack/View_gen.cpp =================================================================== --- trunk/OpenMPT/mptrack/View_gen.cpp 2009-06-08 19:25:03 UTC (rev 264) +++ trunk/OpenMPT/mptrack/View_gen.cpp 2009-06-08 21:22:25 UTC (rev 265) @@ -662,7 +662,7 @@ short int pos; LockControls(); - const UINT nLoopLimit = pModDoc->GetSoundFile()->GetNumChannels() - nChn; + const UINT nLoopLimit = min(4, pModDoc->GetSoundFile()->GetNumChannels() - nChn); for (UINT iCh=0; iCh<nLoopLimit; iCh++) { // Volume sliders This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |