summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/tempo.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc
index a23743820c..eadfe873a5 100644
--- a/libs/ardour/tempo.cc
+++ b/libs/ardour/tempo.cc
@@ -1059,6 +1059,7 @@ TempoSection*
TempoMap::add_tempo (const Tempo& tempo, const double& pulse, const framepos_t& frame, ARDOUR::TempoSection::Type type, PositionLockStyle pls)
{
if (tempo.note_types_per_minute() <= 0.0) {
+ warning << "Cannot add tempo. note types per minute must be greater than zero." << endmsg;
return 0;
}
@@ -1078,6 +1079,7 @@ void
TempoMap::replace_tempo (TempoSection& ts, const Tempo& tempo, const double& pulse, const framepos_t& frame, TempoSection::Type type, PositionLockStyle pls)
{
if (tempo.note_types_per_minute() <= 0.0) {
+ warning << "Cannot replace tempo. note types per minute must be greater than zero." << endmsg;
return;
}