Skip to content

Commit

Permalink
SvgColourMatrixFix parsing fix (#540)
Browse files Browse the repository at this point in the history
* Remove empty entries in color matrix
* Remove unnecessary Replace call
  • Loading branch information
wieslawsoltes authored and mrbean-bremen committed Aug 5, 2019
1 parent f21eebf commit ebcbed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Filter Effects/feColourMatrix/SvgColourMatrix.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public override void Process(ImageBuffer buffer)
};
break;
default: // Matrix
var parts = this.Values.Replace(" ", " ").Split(new char[] { ' ', '\t', '\n', '\r', ',' });
var parts = this.Values.Split(new char[] { ' ', '\t', '\n', '\r', ',' }, StringSplitOptions.RemoveEmptyEntries);
colorMatrixElements = new float[5][];
for (int i = 0; i < 4; i++)
{
Expand Down

0 comments on commit ebcbed6

Please sign in to comment.