diff --git a/src/Converter.js b/src/Converter.js index 2c6f3cb..77f84ad 100644 --- a/src/Converter.js +++ b/src/Converter.js @@ -943,8 +943,8 @@ var MEI2VF = ( function(m2v, VF, $, undefined) { var me = this, refLocationIndex; // check if there's an unresolved TStamp2 reference to this location // (measure, staff, layer): - if (!measure_n) - throw new m2v.RUNTIME_ERROR('MEI2VF.RERR.me.extract_events:', ' must have @n specified'); + if (isNaN(measure_n)) + throw new m2v.RUNTIME_ERROR('MEI2VF.RERR.extract_events', ' must have @n specified'); staff_n = staff_n || 1; refLocationIndex = measure_n + ':' + staff_n + ':' + ($(layer).attr('n') || '1'); if (me.unresolvedTStamp2[refLocationIndex]) { diff --git a/tests/TC.Hyphens.xml b/tests/TC.Hyphens.xml index 000196e..1815870 100644 --- a/tests/TC.Hyphens.xml +++ b/tests/TC.Hyphens.xml @@ -21,7 +21,7 @@
- + @@ -50,7 +50,7 @@ - + @@ -71,7 +71,7 @@ - + @@ -92,7 +92,7 @@ - + @@ -119,7 +119,7 @@ - + @@ -148,7 +148,7 @@ cis e - + @@ -175,7 +175,7 @@ - + @@ -194,7 +194,7 @@ - + @@ -203,7 +203,7 @@ - + @@ -212,7 +212,7 @@ - + etc.