fixed segfault

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@451 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2007-01-02 13:59:26 +00:00
parent 73c75e94cb
commit 03a5e5df89
4 changed files with 19 additions and 6 deletions

View File

@@ -3,7 +3,7 @@
/*
* about_dialog.cpp - implementation of about-dialog
*
* Copyright (c) 2004-2006 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2004-2007 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -73,7 +73,7 @@ aboutDialog::aboutDialog() :
QLabel * about_lbl = new QLabel( tr( "LMMS - A powerful "
"synthesizer-studio\n\n"
"Copyright (c) 2004-2006 "
"Copyright (c) 2004-2007 "
"LMMS-Developers\n\n"
"http://lmms.sourceforge.net" )
#ifndef QT4

View File

@@ -3,7 +3,7 @@
/*
* note.cpp - implementation of class note
*
* Copyright (c) 2004-2006 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2004-2007 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -344,6 +344,10 @@ void note::detachCurrentDetuning( void )
bool note::hasDetuningInfo( void )
{
if( m_detuning == NULL )
{
return( FALSE );
}
automationPattern::timeMap map =
m_detuning->getAutomationPattern()->getTimeMap();
return( map.size() > 1 || map[0] != 0 );