aboutsummaryrefslogtreecommitdiff
path: root/liblogdiag
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-11-02 11:43:49 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-11-02 11:43:49 +0100
commit3ff0f117f9344a2bbfa352bfa4fb9514d7ce6979 (patch)
tree3abbae74d3a4f82b53670992e0f4bc8adba69151 /liblogdiag
parentde291ffddb3c92252199dc424d68c2adc84c53f8 (diff)
downloadlogdiag-3ff0f117f9344a2bbfa352bfa4fb9514d7ce6979.tar.gz
logdiag-3ff0f117f9344a2bbfa352bfa4fb9514d7ce6979.tar.xz
logdiag-3ff0f117f9344a2bbfa352bfa4fb9514d7ce6979.zip
Make note of an alternative export approach
Diffstat (limited to 'liblogdiag')
-rw-r--r--liblogdiag/ld-diagram-view.c3
1 files changed, 3 insertions, 0 deletions
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);