Package: gaphor
Version: 0.15.0-1.1
Severity: important
When gaphor opens saved file with Actions diagram, all control flow lines are
lost. Only nodes like initials, finals, actions are left.
When checking the saved file, I find the control flow data are still there.
They just disappear from the screen when re-opened. And when saving it again,
they will be actually lost. So, I suspect the file reading process has skipped
them, or the saved data may be incomplete.
The attached files illustrate a minimal case:
1. wo.gaphor is a minimal Actions diagram with only initial and final nodes,
*without* the control flow.
2. w.gaphor is the same diagram as in wo.gaphor, *with* a single control
flow from initial to final node. The data is there in the saved file,
but gets lost when re-opened.
3. w2.gaphor is w.gaphor saved after re-opened. Now the control flow data
gets actually lost, and becomes identical to wo.gaphor.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=th_TH.UTF-8, LC_CTYPE=th_TH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages gaphor depends on:
ii python 2.6.6-3+squeeze1 interactive high-level object-orie
ii python-cairo 1.8.8-1+b1 Python bindings for the Cairo vect
ii python-gaphas 0.6.0-1 diagramming widget
ii python-gnome2 2.28.1-1 Python bindings for the GNOME desk
ii python-gobject 2.21.4+is.2.21.3-1 Python bindings for the GObject li
ii python-gtk2 2.17.0-4 Python bindings for the GTK+ widge
ii python-pkg-resources 0.6.14-4 Package Discovery and Resource Acc
ii python-simplegeneric 0.7-1 Simple generic functions for Pytho
ii python-support 1.0.11 automated rebuilding support for P
ii python-zope.component 3.9.1-1 Zope Component Architecture
gaphor recommends no packages.
gaphor suggests no packages.
-- no debconf information
<?xml version="1.0" encoding="utf-8"?>
<gaphor xmlns="http://gaphor.sourceforge.net/model" version="3.0"
gaphor-version="0.15.0">
<Package id="0f71b1d4-fa04-11df-8bd4-c417fe2aeb42">
<name>
<val><![CDATA[New model]]></val>
</name>
<ownedDiagram>
<reflist>
<ref refid="0f71daec-fa04-11df-8bd4-c417fe2aeb42"/>
</reflist>
</ownedDiagram>
</Package>
<Diagram id="0f71daec-fa04-11df-8bd4-c417fe2aeb42">
<name>
<val><![CDATA[main]]></val>
</name>
<package>
<ref refid="0f71b1d4-fa04-11df-8bd4-c417fe2aeb42"/>
</package>
<canvas>
<item type="InitialNodeItem" id="195b527c-fa04-11df-8bd4-c417fe2aeb42">
<matrix>
<val>(1.0, 0.0, 0.0, 1.0, 145.0, 30.0)</val>
</matrix>
<width>
<val>20.0</val>
</width>
<height>
<val>20.0</val>
</height>
<subject>
<ref refid="195b2356-fa04-11df-8bd4-c417fe2aeb42"/>
</subject>
<show_stereotypes_attrs>
<val>0</val>
</show_stereotypes_attrs>
</item>
<item type="ActivityFinalNodeItem" id="1ab8675e-fa04-11df-8bd4-c417fe2aeb42">
<matrix>
<val>(1.0, 0.0, 0.0, 1.0, 139.0, 96.0)</val>
</matrix>
<width>
<val>30.0</val>
</width>
<height>
<val>30.0</val>
</height>
<subject>
<ref refid="1ab8471a-fa04-11df-8bd4-c417fe2aeb42"/>
</subject>
<show_stereotypes_attrs>
<val>0</val>
</show_stereotypes_attrs>
</item>
</canvas>
</Diagram>
<InitialNode id="195b2356-fa04-11df-8bd4-c417fe2aeb42">
<presentation>
<reflist>
<ref refid="195b527c-fa04-11df-8bd4-c417fe2aeb42"/>
</reflist>
</presentation>
</InitialNode>
<ActivityFinalNode id="1ab8471a-fa04-11df-8bd4-c417fe2aeb42">
<presentation>
<reflist>
<ref refid="1ab8675e-fa04-11df-8bd4-c417fe2aeb42"/>
</reflist>
</presentation>
</ActivityFinalNode>
</gaphor>
<?xml version="1.0" encoding="utf-8"?>
<gaphor xmlns="http://gaphor.sourceforge.net/model" version="3.0"
gaphor-version="0.15.0">
<Package id="0f71b1d4-fa04-11df-8bd4-c417fe2aeb42">
<name>
<val><![CDATA[New model]]></val>
</name>
<ownedDiagram>
<reflist>
<ref refid="0f71daec-fa04-11df-8bd4-c417fe2aeb42"/>
</reflist>
</ownedDiagram>
</Package>
<Diagram id="0f71daec-fa04-11df-8bd4-c417fe2aeb42">
<name>
<val><![CDATA[main]]></val>
</name>
<package>
<ref refid="0f71b1d4-fa04-11df-8bd4-c417fe2aeb42"/>
</package>
<canvas>
<item type="InitialNodeItem" id="195b527c-fa04-11df-8bd4-c417fe2aeb42">
<matrix>
<val>(1.0, 0.0, 0.0, 1.0, 145.0, 30.0)</val>
</matrix>
<width>
<val>20.0</val>
</width>
<height>
<val>20.0</val>
</height>
<subject>
<ref refid="195b2356-fa04-11df-8bd4-c417fe2aeb42"/>
</subject>
<show_stereotypes_attrs>
<val>0</val>
</show_stereotypes_attrs>
</item>
<item type="ActivityFinalNodeItem" id="1ab8675e-fa04-11df-8bd4-c417fe2aeb42">
<matrix>
<val>(1.0, 0.0, 0.0, 1.0, 139.0, 96.0)</val>
</matrix>
<width>
<val>30.0</val>
</width>
<height>
<val>30.0</val>
</height>
<subject>
<ref refid="1ab8471a-fa04-11df-8bd4-c417fe2aeb42"/>
</subject>
<show_stereotypes_attrs>
<val>0</val>
</show_stereotypes_attrs>
</item>
<item type="FlowItem" id="23c40d08-fa04-11df-8bd4-c417fe2aeb42">
<subject>
<ref refid="2487c1c6-fa04-11df-8bd4-c417fe2aeb42"/>
</subject>
<show_stereotypes_attrs>
<val>0</val>
</show_stereotypes_attrs>
<matrix>
<val>(1.0, 0.0, 0.0, 1.0, 155.0, 50.0)</val>
</matrix>
<orthogonal>
<val>0</val>
</orthogonal>
<horizontal>
<val>0</val>
</horizontal>
<points>
<val>[(0.0, 0.0), (0.0, 46.0)]</val>
</points>
<head-connection>
<ref refid="195b527c-fa04-11df-8bd4-c417fe2aeb42"/>
</head-connection>
<tail-connection>
<ref refid="1ab8675e-fa04-11df-8bd4-c417fe2aeb42"/>
</tail-connection>
</item>
</canvas>
</Diagram>
<InitialNode id="195b2356-fa04-11df-8bd4-c417fe2aeb42">
<outgoing>
<reflist>
<ref refid="2487c1c6-fa04-11df-8bd4-c417fe2aeb42"/>
</reflist>
</outgoing>
<presentation>
<reflist>
<ref refid="195b527c-fa04-11df-8bd4-c417fe2aeb42"/>
</reflist>
</presentation>
</InitialNode>
<ActivityFinalNode id="1ab8471a-fa04-11df-8bd4-c417fe2aeb42">
<incoming>
<reflist>
<ref refid="2487c1c6-fa04-11df-8bd4-c417fe2aeb42"/>
</reflist>
</incoming>
<presentation>
<reflist>
<ref refid="1ab8675e-fa04-11df-8bd4-c417fe2aeb42"/>
</reflist>
</presentation>
</ActivityFinalNode>
<ControlFlow id="2487c1c6-fa04-11df-8bd4-c417fe2aeb42">
<guard>
<ref refid="2487f2fe-fa04-11df-8bd4-c417fe2aeb42"/>
</guard>
<presentation>
<reflist>
<ref refid="23c40d08-fa04-11df-8bd4-c417fe2aeb42"/>
</reflist>
</presentation>
<source>
<ref refid="195b2356-fa04-11df-8bd4-c417fe2aeb42"/>
</source>
<target>
<ref refid="1ab8471a-fa04-11df-8bd4-c417fe2aeb42"/>
</target>
</ControlFlow>
<LiteralSpecification id="2487f2fe-fa04-11df-8bd4-c417fe2aeb42"/>
</gaphor>
<?xml version="1.0" encoding="utf-8"?>
<gaphor xmlns="http://gaphor.sourceforge.net/model" version="3.0"
gaphor-version="0.15.0">
<Package id="0f71b1d4-fa04-11df-8bd4-c417fe2aeb42">
<name>
<val><![CDATA[New model]]></val>
</name>
<ownedDiagram>
<reflist>
<ref refid="0f71daec-fa04-11df-8bd4-c417fe2aeb42"/>
</reflist>
</ownedDiagram>
</Package>
<Diagram id="0f71daec-fa04-11df-8bd4-c417fe2aeb42">
<name>
<val><![CDATA[main]]></val>
</name>
<package>
<ref refid="0f71b1d4-fa04-11df-8bd4-c417fe2aeb42"/>
</package>
<canvas>
<item type="InitialNodeItem" id="195b527c-fa04-11df-8bd4-c417fe2aeb42">
<matrix>
<val>(1.0, 0.0, 0.0, 1.0, 145.0, 30.0)</val>
</matrix>
<width>
<val>20.0</val>
</width>
<height>
<val>20.0</val>
</height>
<subject>
<ref refid="195b2356-fa04-11df-8bd4-c417fe2aeb42"/>
</subject>
<show_stereotypes_attrs>
<val>0</val>
</show_stereotypes_attrs>
</item>
<item type="ActivityFinalNodeItem" id="1ab8675e-fa04-11df-8bd4-c417fe2aeb42">
<matrix>
<val>(1.0, 0.0, 0.0, 1.0, 139.0, 96.0)</val>
</matrix>
<width>
<val>30.0</val>
</width>
<height>
<val>30.0</val>
</height>
<subject>
<ref refid="1ab8471a-fa04-11df-8bd4-c417fe2aeb42"/>
</subject>
<show_stereotypes_attrs>
<val>0</val>
</show_stereotypes_attrs>
</item>
</canvas>
</Diagram>
<InitialNode id="195b2356-fa04-11df-8bd4-c417fe2aeb42">
<presentation>
<reflist>
<ref refid="195b527c-fa04-11df-8bd4-c417fe2aeb42"/>
</reflist>
</presentation>
</InitialNode>
<ActivityFinalNode id="1ab8471a-fa04-11df-8bd4-c417fe2aeb42">
<presentation>
<reflist>
<ref refid="1ab8675e-fa04-11df-8bd4-c417fe2aeb42"/>
</reflist>
</presentation>
</ActivityFinalNode>
</gaphor>