|
From: <re...@us...> - 2010-03-22 21:03:15
|
Revision: 545
http://modplug.svn.sourceforge.net/modplug/?rev=545&view=rev
Author: rewbs
Date: 2010-03-22 21:03:07 +0000 (Mon, 22 Mar 2010)
Log Message:
-----------
[fix] Prevent effect visualizer from writing PC notes if module type isn't MPTM.
Modified Paths:
--------------
trunk/OpenMPT/mptrack/EffectVis.cpp
Modified: trunk/OpenMPT/mptrack/EffectVis.cpp
===================================================================
--- trunk/OpenMPT/mptrack/EffectVis.cpp 2010-03-22 20:17:53 UTC (rev 544)
+++ trunk/OpenMPT/mptrack/EffectVis.cpp 2010-03-22 21:03:07 UTC (rev 545)
@@ -767,7 +767,7 @@
//--------------------------------
{
CModControlDlg::OnInitDialog();
- if (IsPcNote(m_startRow))
+ if (m_pModDoc->GetModType() == MOD_TYPE_MPT && IsPcNote(m_startRow))
{
// If first selected row is a PC Note, default to PC note overwrite mode
// and use it as a template for new PC notes that will be created via the visualiser.
@@ -808,8 +808,11 @@
m_cmbActionList.ResetContent();
m_cmbActionList.SetItemData(m_cmbActionList.AddString("Overwrite with effect:"), kAction_OverwriteFX);
m_cmbActionList.SetItemData(m_cmbActionList.AddString("Fill blanks with effect:"), kAction_FillFX);
- m_cmbActionList.SetItemData(m_cmbActionList.AddString("Overwrite with PC note"), kAction_OverwritePC);
- m_cmbActionList.SetItemData(m_cmbActionList.AddString("Fill blanks with PC note"), kAction_FillPC);
+ if (m_pModDoc->GetModType() == MOD_TYPE_MPT)
+ {
+ m_cmbActionList.SetItemData(m_cmbActionList.AddString("Overwrite with PC note"), kAction_OverwritePC);
+ m_cmbActionList.SetItemData(m_cmbActionList.AddString("Fill blanks with PC note"), kAction_FillPC);
+ }
m_cmbActionList.SetItemData(m_cmbActionList.AddString("Never change effect type"), kAction_Preserve);
m_cmbActionList.SetCurSel(m_nAction);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|