]> gerrit.simantics Code Review - simantics/platform.git/commit - bundles/org.simantics.modeling.ui
Added mechanism to diagram IFlagType to prevent graph modifications 07/507/1
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 12:03:44 +0000 (15:03 +0300)
commitc0464cc6dd167281b1c104b61dd81da23e7a8698
treefeede7794b7eeb27895f36232b3487e10c269e60
parente25e99231e398b1133a39e1d786928cfd842b446
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
(cherry picked from commit c92959f34dd3cf5f365d8798839a919840b5487a)
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