Fix view mode affecting result of image export (#790)

This commit is contained in:
Brian Wo 2022-10-11 04:03:28 +08:00 committed by Keavon Chambers
parent 197ec492f2
commit 02da804f38

View file

@ -330,7 +330,7 @@ impl MessageHandler<DocumentMessage, (&InputPreprocessorMessageHandler, &FontCac
false => file_name + file_suffix,
};
let render_data = RenderData::new(self.view_mode, font_cache, None, true);
let render_data = RenderData::new(ViewMode::Normal, font_cache, None, true);
let rendered = self.graphene_document.render_root(render_data);
let document = format!(
r#"<svg xmlns="http://www.w3.org/2000/svg" viewBox="{} {} {} {}" width="{}px" height="{}">{}{}</svg>"#,