|
From: <sag...@us...> - 2010-09-13 17:21:50
|
Revision: 710
http://modplug.svn.sourceforge.net/modplug/?rev=710&view=rev
Author: saga-games
Date: 2010-09-13 17:21:44 +0000 (Mon, 13 Sep 2010)
Log Message:
-----------
[Fix] Sample Editor: When cutting samples with a loop, the loop end point was not always moved correctly if the cut part started in the loop.
Modified Paths:
--------------
trunk/OpenMPT/mptrack/View_smp.cpp
Modified: trunk/OpenMPT/mptrack/View_smp.cpp
===================================================================
--- trunk/OpenMPT/mptrack/View_smp.cpp 2010-09-13 15:53:16 UTC (rev 709)
+++ trunk/OpenMPT/mptrack/View_smp.cpp 2010-09-13 17:21:44 UTC (rev 710)
@@ -1743,12 +1743,12 @@
pSmp->nLoopStart = m_dwBeginSel;
pSmp->nLoopEnd -= m_dwEndSel - m_dwBeginSel;
}
- else if(m_dwBeginSel > pSmp->nLoopStart && m_dwEndSel < pSmp->nLoopEnd)
+ else if(m_dwBeginSel >= pSmp->nLoopStart && m_dwEndSel < pSmp->nLoopEnd)
{
// cut part is in the loop
pSmp->nLoopEnd -= m_dwEndSel - m_dwBeginSel;
}
- else if(m_dwBeginSel > pSmp->nLoopStart && m_dwBeginSel < pSmp->nLoopEnd && m_dwEndSel > pSmp->nLoopEnd)
+ else if(m_dwBeginSel >= pSmp->nLoopStart && m_dwBeginSel < pSmp->nLoopEnd && m_dwEndSel > pSmp->nLoopEnd)
{
// cut part is partly before loop end
pSmp->nLoopEnd = m_dwBeginSel;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|