Skip to content
Snippets Groups Projects

Resolve "Inherit from another table"

Merged Victor Löfgren requested to merge 127-inherit-from-another-table into dev
3 files
+ 11
4
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -37,7 +37,11 @@ def _component(item_component, item_slide_new):
Internal function. Makes a copy of the provided
component item to the specified slide.
"""
data = {}
if item_component.type_id == 1:
data["text"] = item_component.text
elif item_component.type_id == 2:
data["image_id"] = item_component.image_id
add.component(
item_component.type_id,
item_slide_new.id,
@@ -45,6 +49,7 @@ def _component(item_component, item_slide_new):
item_component.y,
item_component.w,
item_component.h,
**data,
)
Loading