projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove the Solo+Iso buttons in the Master bus.
[ardour.git]
/
gtk2_ardour
/
time_selection.cc
diff --git
a/gtk2_ardour/time_selection.cc
b/gtk2_ardour/time_selection.cc
index 419d82dbccfde06c06c0c9788803f3ea573538f3..2f40dcb8e4afe0a06c80f963193fa94660bb1caf 100644
(file)
--- a/
gtk2_ardour/time_selection.cc
+++ b/
gtk2_ardour/time_selection.cc
@@
-24,7
+24,7
@@
#include "time_selection.h"
#include "time_selection.h"
-#include "i18n.h"
+#include "
pbd/
i18n.h"
using namespace ARDOUR;
using namespace PBD;
using namespace ARDOUR;
using namespace PBD;
@@
-38,7
+38,7
@@
TimeSelection::operator[] (uint32_t which)
}
}
fatal << string_compose (_("programming error: request for non-existent audio range (%1)!"), which) << endmsg;
}
}
fatal << string_compose (_("programming error: request for non-existent audio range (%1)!"), which) << endmsg;
- /*NOTREACHED*/
+
abort();
/*NOTREACHED*/
return *(new AudioRange(0,0,0)); /* keep the compiler happy; never called */
}
return *(new AudioRange(0,0,0)); /* keep the compiler happy; never called */
}
@@
-103,5
+103,9
@@
TimeSelection::end_frame ()
framecnt_t
TimeSelection::length()
{
framecnt_t
TimeSelection::length()
{
+ if (empty()) {
+ return 0;
+ }
+
return end_frame() - start() + 1;
}
return end_frame() - start() + 1;
}