summaryrefslogtreecommitdiff
path: root/muse2/muse/midiedit/scoreedit.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2012-10-12 15:01:14 +0000
committerFlorian Jung <flo@windfisch.org>2012-10-12 15:01:14 +0000
commit5821f678ca1c95a97170588a77303e2f14e4dbdb (patch)
tree8767287ee997eebb66fd64e21d445dfca00a411b /muse2/muse/midiedit/scoreedit.cpp
parent0368494d2ba85b24da193512972ccfeada99cf52 (diff)
some compilation warning fixes, thanks, WillyFoobar.
Diffstat (limited to 'muse2/muse/midiedit/scoreedit.cpp')
-rw-r--r--muse2/muse/midiedit/scoreedit.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/muse2/muse/midiedit/scoreedit.cpp b/muse2/muse/midiedit/scoreedit.cpp
index aa22ce68..e274769d 100644
--- a/muse2/muse/midiedit/scoreedit.cpp
+++ b/muse2/muse/midiedit/scoreedit.cpp
@@ -3183,6 +3183,10 @@ void ScoreCanvas::draw_items(QPainter& p, int y_offset, staff_t& staff, ScoreIte
case COLOR_MODE_VELO:
color_index=VELO_PIXMAP_BEGIN + it->source_event->velo();
break;
+
+ default:
+ cerr << "ERROR: THIS CANNOT HAPPEN: coloring_mode (="<<coloring_mode<<") is invalid! defaulting to black." << endl;
+ color_index=BLACK_PIXMAP;
}
if (it->source_event->selected())
@@ -3224,6 +3228,8 @@ void ScoreCanvas::draw_items(QPainter& p, int y_offset, staff_t& staff, ScoreIte
case NONE: acc_pix=pix_noacc; break;
case SHARP: acc_pix=pix_sharp; break;
case B: acc_pix=pix_b; break;
+ default: cerr << "ERROR: THIS CANNOT HAPPEN: it->pos.vorzeichen (="<<it->pos.vorzeichen<<") is invalid! defaulting to NONE." << endl;
+ acc_pix=pix_noacc; break;
}
draw_pixmap(p,it->x-ACCIDENTIAL_DIST -x_pos+x_left,y_offset + it->y, acc_pix[color_index]);