Merge pull request #3374 from emanuelschuetze/fix-pdf-error-for-reason

Fixed pdf generation error for motion reason.
This commit is contained in:
Norman Jäckel 2017-08-28 21:07:39 +02:00 committed by GitHub
commit 0f322720a4

View File

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