Apply review fixes

- crates/pptx/src/write/shapes.rs
This commit is contained in:
aiongg committed 2026-11-08 05:59:15 +00:00
1 parent 220b52dfdb
commit 809c44654d
1 file changed
+3 -1
+3 -1
View File
@@ -343,7 +343,9 @@ pub fn shape(w: &mut W, x: &mut Exp, o: &mut Out, cx: &mut Ctx, s: &Shape, depth
{
dml::effects(w, fx);
}
if let Some(raw) = fx.raw3d.as_deref().and_then(|s| dml::valid_raw3d(s, &["scene3d"])) {
if let Some(raw) =
fx.raw3d.as_deref().map(|s| s.find("<a:sp3d").map_or(s, |i| &s[..i])).and_then(|s| dml::valid_raw3d(s, &["scene3d"]))
{
w.raw(raw);
}
}