Make note of an alternative export approach

This commit is contained in:
Přemysl Eric Janouch 2021-11-02 11:43:49 +01:00
parent de291ffddb
commit 3ff0f117f9
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -3002,6 +3002,9 @@ ld_diagram_view_get_export_bounds (LdDiagramView *self, LdRectangle *rect)
{
LdRectangle intermediate;
/* Presumably, cairo_recording_surface_ink_extents() could also be used,
* though DrawData::exposed_rect currently stands in the way.
*/
get_diagram_bounds (self, &intermediate);
ld_diagram_view_diagram_to_widget_coords_rect (self, &intermediate, rect);
return ld_diagram_view_get_scale_in_px (self);