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

@@ -1,3 +1,12 @@
2007-01-02 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
* src/core/note.cpp:
fixed segfault in hasDetuningInfo() if m_detuning was NULL
* README:
* src/core/about_dialog.cpp:
extended copyright from 2006 to 2007
2006-12-28 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
* configure.in:

6
README
View File

@@ -1,7 +1,7 @@
Linux MultiMedia Studio 0.1.4
Linux MultiMedia Studio 0.2.1
==============================
Copyright (c) 2004-2006 by Tobias Doerffel and others.
Copyright (c) 2004-2007 by LMMS-developers
This program is free software; you can redistribute it and/or modify
@@ -63,7 +63,7 @@ Optional, but strongly recommended:
For compiling you should have an up to date GCC with g++.
LMMS has been (successfully) tested under Debian Sarge 3.1 / unstable,
Fedora Core 2-4, and SuSE Linux 9.0-9.3 with Qt 3.[23].x and Qt 4.0.0.
It was compiled using GCC 2.95, 3.3.x, GCC 3.4.x and GCC 4.0.x.
It was compiled using GCC 3.3.x, GCC 3.4.x and GCC 4.x.y.
If you have problems with compiling or running LMMS, find any bug or have
suggestions and so on, please feel free to e-mail me (for mail-address see

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 );