|
From: <sag...@us...> - 2011-05-23 21:32:45
|
Revision: 880
http://modplug.svn.sourceforge.net/modplug/?rev=880&view=rev
Author: saga-games
Date: 2011-05-23 21:32:39 +0000 (Mon, 23 May 2011)
Log Message:
-----------
[Fix] Pattern Editor: Shift+Channel Drag killed the last channel.
Modified Paths:
--------------
trunk/OpenMPT/mptrack/View_pat.cpp
Modified: trunk/OpenMPT/mptrack/View_pat.cpp
===================================================================
--- trunk/OpenMPT/mptrack/View_pat.cpp 2011-05-21 00:14:21 UTC (rev 879)
+++ trunk/OpenMPT/mptrack/View_pat.cpp 2011-05-23 21:32:39 UTC (rev 880)
@@ -1195,7 +1195,7 @@
CHANNELINDEX i = 0;
bool modified = duplicate;
- for(CHANNELINDEX nChn = 0; nChn < pModDoc->GetNumChannels(); nChn++)
+ for(CHANNELINDEX nChn = 0; nChn < pModDoc->GetNumChannels() + (duplicate ? 1 : 0); nChn++)
{
if(nChn == nTargetNo)
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|