Skip to content

Commit

Permalink
update table_cell_width, table_indent (#796)
Browse files Browse the repository at this point in the history
  • Loading branch information
morugetsm authored Jan 17, 2025
1 parent 1e6227e commit 5095e3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docx-core/src/documents/elements/table_cell_width.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl BuildXML for TableCellWidth {
stream: xml::writer::EventWriter<W>,
) -> xml::writer::Result<xml::writer::EventWriter<W>> {
XMLBuilder::from(stream)
.table_cell_width(self.width as i32, WidthType::Dxa)?
.table_cell_width(self.width as i32, self.width_type)?
.into_inner()
}
}
Expand Down
2 changes: 1 addition & 1 deletion docx-core/src/documents/elements/table_indent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl BuildXML for TableIndent {
stream: xml::writer::EventWriter<W>,
) -> xml::writer::Result<xml::writer::EventWriter<W>> {
XMLBuilder::from(stream)
.table_indent(self.width, WidthType::Dxa)?
.table_indent(self.width, self.width_type)?
.into_inner()
}
}
Expand Down

0 comments on commit 5095e3d

Please sign in to comment.