Skip to content

Commit 4a8168e

Browse files
author
Ben Gribaudo
committed
bug fix for lines()'s postponed style check
A style should be output unless style is explicitly set to null (i.e. a style should be output if style is undefined).
1 parent 95ab7ef commit 4a8168e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jspdf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ var jsPDF = (function(global) {
10781078
}
10791079

10801080
// stroking / filling / both the path
1081-
if (style) {
1081+
if (style !== null) {
10821082
out(getStyle(style));
10831083
}
10841084
return this;

0 commit comments

Comments
 (0)