We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c19dec commit 4d89422Copy full SHA for 4d89422
1 file changed
editor/src/node_graph_executor.rs
@@ -454,10 +454,10 @@ impl NodeGraphExecutor {
454
..
455
}) => {
456
if file_type == FileType::Svg {
457
- responses.add(FrontendMessage::TriggerSaveFile { name, content: svg.into_bytes() });
+ responses.add(FrontendMessage::TriggerSaveFile { name, content: svg.into_bytes().into() });
458
} else if file_type == FileType::Pdf {
459
- match svg_to_pdf(&svg, size) {
460
- Ok(pdf_data) => responses.add(FrontendMessage::TriggerSaveFile { name, content: pdf_data }),
+ match svg_to_pdf(&svg, size.into()) {
+ Ok(pdf_data) => responses.add(FrontendMessage::TriggerSaveFile { name, content: pdf_data.into() }),
461
Err(err) => return Err(format!("Failed to convert SVG to PDF: {err}")),
462
}
463
} else {
0 commit comments