mjwybrow / dunnart

Constraint-based diagram editor
http://www.dunnart.org/
Other
139 stars 20 forks source link

bug in Canvas::loadGmlDiagram #19

Open uasolo opened 10 years ago

uasolo commented 10 years ago

in canvas.cpp, member function bool Canvas::loadGmlDiagram(const QFileInfo& fileInfo) line: m_gml_graph = new gml::Graph(this, fileInfo.absolutePath().toStdString(), should be: m_gml_graph = new gml::Graph(this, fileInfo.absoluteFilePath().toStdString(),

Even fixing the above, graphs do not seem to be displayed.

mjwybrow commented 10 years ago

You're right about that absolutePath() bug. It is fixed in the trunk.

GML graph loading still doesn't work. It used to be that the GML graphs were considered large graphs and Dunnart would open them in a special way were it only showed a subset of the entire graph on the canvas and the user could browse around. This is broken in the current version. Actually, this was really done for a paper and never implemented in a nice way. I will likely modify the GML loading code to load the graph to the canvas normally.