]> gerrit.simantics Code Review - simantics/platform.git/commit
Listen to changes in page settings in DiagramSceneGraphProvider
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 14 Aug 2020 08:37:58 +0000 (11:37 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 14 Aug 2020 08:48:48 +0000 (11:48 +0300)
commit15a025f0981f33f15d39a3d2de3b0f9bf7a18c79
tree570bc44f13aec4861ab4e253ae56244a96245944
parentb36d5008430c0d29e82ffa09a38636e05755d4b4
Listen to changes in page settings in DiagramSceneGraphProvider

This is needed for use cases where diagrams are transformed to SVG and
viewed through browsers.

These changes also fix PDF printing to force page border rendering off
when not fitting PDF pages to diagram content, but to diagram page size.
This avoids printing ugly black half-visible borders around diagrams
where page borders are enabled.

gitlab #563

Change-Id: I7f666dec34c650489264f3d23cbd72d5102b2f14
(cherry picked from commit 2ccc058ac6c303b64a70ad0f0c48ca501bf4aa6a)
bundles/org.simantics.diagram/src/org/simantics/diagram/export/ExportDiagramPdf.java
bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/pdf/PDFPainter.java
bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/sg/DiagramSceneGraphProvider.java