Merge pull request #3676 from FinnStutzenstein/pdf-fix
Fixed pdf export when element is null
This commit is contained in:
commit
acc86b4c83
@ -473,7 +473,8 @@ angular.module('OpenSlidesApp.core.pdf', [])
|
|||||||
"insert": ["color:green", "text-decoration:underline"]
|
"insert": ["color:green", "text-decoration:underline"]
|
||||||
},
|
},
|
||||||
getLineNumber = function (element) {
|
getLineNumber = function (element) {
|
||||||
if (element.nodeName == 'SPAN' && element.getAttribute('class') && element.getAttribute('class').indexOf('os-line-number') > -1) {
|
if (element && element.nodeName == 'SPAN' && element.getAttribute('class') &&
|
||||||
|
element.getAttribute('class').indexOf('os-line-number') > -1) {
|
||||||
return element.getAttribute('data-line-number');
|
return element.getAttribute('data-line-number');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user