Index: lily/note-head.cc |
diff --git a/lily/note-head.cc b/lily/note-head.cc |
index 73a2255d9040a91199e994cf05c2fe0e6f9a74b5..386436852c6688239ebf3391730a10cec2c47bf6 100644 |
--- a/lily/note-head.cc |
+++ b/lily/note-head.cc |
@@ -166,8 +166,8 @@ Note_head::get_stem_attachment (Font_metric *fm, const string &key) |
{ |
Offset att; |
- int k = fm->name_to_index (key); |
- if (k >= 0) |
+ size_t k = fm->name_to_index (key); |
+ if (k != GLYPH_INDEX_INVALID) |
{ |
Box b = fm->get_indexed_char_dimensions (k); |
Offset wxwy = fm->attachment_point (key); |