Changeset 1534

Show
Ignore:
Timestamp:
01/26/10 13:49:24 (3 years ago)
Author:
wolke
Message:

small bug fix

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/undo/gui/src/PatternEditor/DrumPatternEditor.cpp

    r1533 r1534  
    233233                __nColumn = nColumn; 
    234234                __row = row; 
    235                 __oldLength = m_pDraggedNote->get_length(); 
     235                if( m_pDraggedNote ){ 
     236                        __oldLength = m_pDraggedNote->get_length(); 
     237                }else 
     238                { 
     239                        __oldLength = -1; 
     240                } 
    236241                 
    237242                AudioEngine::get_instance()->unlock();