summaryrefslogtreecommitdiff
path: root/gtk2_ardour/lineset.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-02-18 19:45:52 +0000
committerDavid Robillard <d@drobilla.net>2008-02-18 19:45:52 +0000
commitfbfb26b45c075da880861cf2303b851fe1acc0e8 (patch)
tree4673a82d5516535b17e9c60ffd57a206801a1e01 /gtk2_ardour/lineset.cc
parent1b2fe7bf34f1e05ab4e3975ac91aeda28a4d11d0 (diff)
Preliminary (read: kludgey) MIDI import support.
Only really works when tracks contain only channel 1 data for now. git-svn-id: svn://localhost/ardour2/branches/3.0@3083 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/lineset.cc')
-rw-r--r--gtk2_ardour/lineset.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/lineset.cc b/gtk2_ardour/lineset.cc
index 75fdb938ae..0ae494c034 100644
--- a/gtk2_ardour/lineset.cc
+++ b/gtk2_ardour/lineset.cc
@@ -33,7 +33,7 @@ namespace Canvas {
LinesetClass Lineset::lineset_class;
-static const char* overlap_error_str = "Lineset error: Line overlap";
+//static const char* overlap_error_str = "Lineset error: Line overlap";
Lineset::Line::Line(double c, double w, uint32_t color)
: coord(c)
@@ -142,7 +142,7 @@ Lineset::change_line_width(double coord, double width) {
if(it != lines.end()) {
if(l.coord + width > it->coord) {
- cerr << overlap_error_str << endl;
+ //cerr << overlap_error_str << endl;
return;
}
}
@@ -171,14 +171,14 @@ Lineset::add_line(double coord, double width, uint32_t color) {
/* overlap checking */
if(it != lines.end()) {
if(l.coord + l.width > it->coord) {
- cerr << overlap_error_str << endl;
+ //cerr << overlap_error_str << endl;
return;
}
}
if(it != lines.begin()) {
--it;
if(l.coord < it->coord + it->width) {
- cerr << overlap_error_str << endl;
+ //cerr << overlap_error_str << endl;
return;
}
++it;