Skip to content

Commit

Permalink
Fixed long mtext bug. Still needs tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bzuillsmith committed Feb 12, 2019
1 parent 1580e9b commit 14d913b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/entities/mtext.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ EntityParser.prototype.parseEntity = function(scanner, curr) {
if(curr.code === 0) break;

switch(curr.code) {
case 1:
entity.text = curr.value;
break;
case 3:
entity.text += curr.value;
entity.text ? entity.text += curr.value : entity.text = curr.value;
break;
case 1:
entity.text ? entity.text += curr.value : entity.text = curr.value;
break;
case 10:
entity.position = helpers.parsePoint(scanner);
Expand Down

0 comments on commit 14d913b

Please sign in to comment.