Skip to content

Commit

Permalink
Fixed Slides::set_slide
Browse files Browse the repository at this point in the history
  • Loading branch information
spirali committed Oct 1, 2020
1 parent 6ab6285 commit a6b16d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions elsie/show.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

import re


Expand Down
4 changes: 3 additions & 1 deletion elsie/slides.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ def set_style(self, style_name, style, base="default"):
assert isinstance(style_name, str)
assert isinstance(style, TextStyle)
if base != "default":
style = self.get_style(base).update(style)
base_style = self.get_style(base)
base_style.update(style)
style = base_style
self._styles = self._styles.copy()
self._styles[style_name] = style

Expand Down

0 comments on commit a6b16d7

Please sign in to comment.