~ubuntu-branches/ubuntu/trusty/muse/trusty

« back to all changes in this revision

Viewing changes to muse/liste/editevent.cpp

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2013-08-28 16:25:57 UTC
  • mfrom: (1.1.16)
  • Revision ID: package-import@ubuntu.com-20130828162557-27ulrksfvm64td50
Tags: 2.1.2-1
* New upstream bugfix release.
* Refresh patches.
* Fix doc links.

Show diffs side-by-side

added added

removed removed

Lines of Context:
456
456
        {
457
457
          MusECore::DrumMap* dm = &MusEGlobal::drumMap[noteSpinBox->value() & 0x7f];
458
458
          num     = (cnum & ~0xff) | dm->anote;
459
 
          port    = &MusEGlobal::midiPorts[dm->port];
460
 
          channel = dm->channel;
 
459
          // Default to track port if -1 and track channel if -1.
 
460
          if(dm->port != -1)
 
461
            port    = &MusEGlobal::midiPorts[dm->port];
 
462
          if(dm->channel != -1)
 
463
            channel = dm->channel;
461
464
        }
462
465
      }
463
466