]> gerrit.simantics Code Review - simantics/platform.git/commit
Added mechanism to diagram IFlagType to prevent graph modifications 06/506/2
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 11 May 2017 11:19:32 +0000 (14:19 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 11 May 2017 11:20:33 +0000 (14:20 +0300)
commitc92959f34dd3cf5f365d8798839a919840b5487a
treea24d7689ad5e0e3a33381088f944b4d77290eb07
parent5655da36b1f5b605b2407b34f1226a9ad60f8ce6
Added mechanism to diagram IFlagType to prevent graph modifications

When diagram flags are loaded, some implementations trigger graph
modifications because the flag type may know the flag to have wrong
direction information based on analysis of the model. Printing diagrams
to PDF or SVG should not modify the database in any way, just trust what
is in there.

refs #7208

Change-Id: Id2d438c0523ed708a0d11219a8efd6954ac5000e
bundles/org.simantics.diagram.svg/src/org/simantics/diagram/svg/export/DiagramToSVG.java
bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/FlagClassFactory.java
bundles/org.simantics.diagram/src/org/simantics/diagram/flag/IFlagType.java
bundles/org.simantics.g2d/src/org/simantics/g2d/canvas/Hints.java
bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/pdf/PDFPainter.java