Skip to content

Commit

Permalink
Merge branch 'master' into demo
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelmegitt committed Oct 26, 2016
2 parents 3d326e7 + 8b80a25 commit f86a0fc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ebu_tt_live/bindings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -830,9 +830,12 @@ def _semantic_after_subtree_copy(self, copied_instance, dataset, element_content
for item in self.orderedContent()
if isinstance(item, ElementContent) and isinstance(item.value, style_type)
]:
style_elem_styles = style_elem._semantic_deconflicted_ids(attr_name='style', dataset=dataset)
if style_elem_styles:
style_elem.style = style_elem_styles
copied_style_elem = dataset['instance_mapping'].get(style_elem)
# The style may not have been copied at all because it isn't used in the requested segment
if copied_style_elem is not None:
style_elem_styles = style_elem._semantic_deconflicted_ids(attr_name='style', dataset=dataset)
if style_elem_styles:
copied_style_elem.style = style_elem_styles


raw.styling._SetSupersedingClass(styling)
Expand Down

0 comments on commit f86a0fc

Please sign in to comment.