From 3ff0f117f9344a2bbfa352bfa4fb9514d7ce6979 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Tue, 2 Nov 2021 11:43:49 +0100 Subject: Make note of an alternative export approach --- liblogdiag/ld-diagram-view.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/liblogdiag/ld-diagram-view.c b/liblogdiag/ld-diagram-view.c index 5905388..e5d6a52 100644 --- a/liblogdiag/ld-diagram-view.c +++ b/liblogdiag/ld-diagram-view.c @@ -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); -- cgit v1.2.3-70-g09d2