Fix view mode affecting result of image export (#790)
This commit is contained in:
parent
197ec492f2
commit
02da804f38
|
|
@ -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>"#,
|
||||
|
|
|
|||
Loading…
Reference in New Issue