|
From: <sag...@us...> - 2010-02-08 21:42:08
|
Revision: 488
http://modplug.svn.sourceforge.net/modplug/?rev=488&view=rev
Author: saga-games
Date: 2010-02-08 21:41:59 +0000 (Mon, 08 Feb 2010)
Log Message:
-----------
[Fix] Pattern Editor: When working with multiple sequences, switching to the pattern editor for the first time automatically marked the document as modified.
Modified Paths:
--------------
trunk/OpenMPT/mptrack/Ctrl_pat.cpp
Modified: trunk/OpenMPT/mptrack/Ctrl_pat.cpp
===================================================================
--- trunk/OpenMPT/mptrack/Ctrl_pat.cpp 2010-02-07 18:32:14 UTC (rev 487)
+++ trunk/OpenMPT/mptrack/Ctrl_pat.cpp 2010-02-08 21:41:59 UTC (rev 488)
@@ -1255,7 +1255,11 @@
{
SEQUENCEINDEX newSeq = (SEQUENCEINDEX)GetDlgItemInt(IDC_EDIT_SEQNUM);
- if (newSeq >= MAX_SEQUENCES)
+ // avoid reloading the order list and thus setting the document modified
+ if(newSeq == m_pSndFile->Order.GetCurrentSequenceIndex())
+ return;
+
+ if (newSeq >= MAX_SEQUENCES)
{
newSeq = MAX_SEQUENCES - 1;
SetDlgItemInt(IDC_EDIT_SEQNUM, MAX_SEQUENCES - 1, FALSE);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|