Small fix so it doesn't crash on my very specific case
parent
52af4afeec
commit
f5fda75a96
|
@ -67,7 +67,9 @@ impl ElementReader for Level {
|
|||
is_lgl = Some(IsLgl::new());
|
||||
}
|
||||
XMLElement::LevelText => {
|
||||
level_text = LevelText::new(attributes[0].value.clone());
|
||||
if !attributes.is_empty() {
|
||||
level_text = LevelText::new(attributes[0].value.clone());
|
||||
}
|
||||
}
|
||||
XMLElement::LevelRestart => {
|
||||
if let Ok(v) = u32::from_str(&attributes[0].value) {
|
||||
|
|
|
@ -418,6 +418,7 @@ pub fn read_docx(buf: &[u8]) -> Result<Docx, ReaderError> {
|
|||
)?;
|
||||
let nums = Numberings::from_xml(&data[..])?;
|
||||
docx = docx.numberings(nums);
|
||||
docx.document_rels.has_numberings = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
1.73
|
||||
1.85
|
||||
|
|
Loading…
Reference in New Issue