Fixed pdf generation error for motion reason.

This commit is contained in:
Emanuel Schütze 2017-08-24 18:45:09 +02:00
parent c4fe50b38d
commit 96d3b4178a

View File

@ -660,7 +660,9 @@ angular.module('OpenSlidesApp.core.pdf', [])
case "h6":
// Special case quick fix to handle the dirty HTML format*/
// see following issue: https://github.com/OpenSlides/OpenSlides/issues/3025
if (lineNumberMode === "outside") {
if (lineNumberMode === "outside" &&
element.childNodes.length > 0 &&
element.childNodes[0].getAttribute) {
var HeaderOutsideLineNumber = {
width: 20,
text: element.childNodes[0].getAttribute("data-line-number"),