fix pdf style parsing issue (fixes #2811)

This commit is contained in:
sean 2017-03-22 14:39:30 +01:00
parent 6b253ef4b7
commit bb5394eb36

View File

@ -499,6 +499,7 @@ angular.module('OpenSlidesApp.core.pdf', [])
ParseElement = function(alreadyConverted, element, currentParagraph, styles, diff_mode) { ParseElement = function(alreadyConverted, element, currentParagraph, styles, diff_mode) {
styles = styles || []; styles = styles || [];
if (element.getAttribute) { if (element.getAttribute) {
styles = [];
var nodeStyle = element.getAttribute("style"); var nodeStyle = element.getAttribute("style");
if (nodeStyle) { if (nodeStyle) {
nodeStyle.split(";").forEach(function(nodeStyle) { nodeStyle.split(";").forEach(function(nodeStyle) {