Skip to content

Commit

Permalink
temp fix for null pattern (see #13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simn committed Apr 23, 2014
1 parent df12b91 commit 428ac45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions format/swf/Writer.hx
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ class Writer {
bits.writeBit(switch(data.fill) {
case LS2FColor(_): false;
case LS2FStyle(_): true;
case null: throw false;
});

bits.writeBit(data.noHScale);
Expand All @@ -570,6 +571,7 @@ class Writer {
switch(data.fill) {
case LS2FColor(color): writeRGBA(color);
case LS2FStyle(style): writeFillStyle(ver, style);
case null: throw false;
}
}
}
Expand Down

0 comments on commit 428ac45

Please sign in to comment.