Commit 8223ddc7 authored by Massimo Cora's avatar Massimo Cora

fixed #576057 – doesn't build with graphviz 2.22.2

	* plugins/class-inheritance/class-inherit.c
	(cls_inherit_draw_graph):
	* plugins/profiler/gprof-function-call-chart-view.c
	(async_draw_graph):
	fixed #576057 – doesn't build with graphviz 2.22.2

svn path=/trunk/; revision=4885
parent 472db510
2009-03-21 Massimo Cora' <mcora@svn.gnome.org>
* plugins/class-inheritance/class-inherit.c
(cls_inherit_draw_graph):
* plugins/profiler/gprof-function-call-chart-view.c
(async_draw_graph):
fixed #576057 – doesn't build with graphviz 2.22.2
2009-03-20 Johannes Schmid <jhs@gnome.org>
* libanjuta/Makefile.am:
......@@ -815,9 +815,18 @@ cls_inherit_draw_graph (AnjutaClassInheritance *plugin)
gdouble node_width;
gdouble node_height;
point node_pos;
#ifndef ND_coord_i
pointf node_posf;
#endif
/* get some infos from the node */
#ifdef ND_coord_i
node_pos = ND_coord_i(graph_node);
#else
node_posf = ND_coord(graph_node);
PF2P(node_posf,node_pos);
#endif
node_width = ND_width (graph_node);
node_height = ND_height (graph_node);
......
......@@ -530,6 +530,9 @@ async_draw_graph (gpointer user_data)
Agedge_t *current_edge;
Agraph_t *current_graph;
point node_pos;
#ifndef ND_coord_i
pointf node_posf;
#endif
gdouble node_width;
gdouble node_height;
......@@ -541,7 +544,13 @@ async_draw_graph (gpointer user_data)
if (self->priv->current_node)
{
#ifdef ND_coord_i
node_pos = ND_coord_i (self->priv->current_node);
#else
node_posf = ND_coord (self->priv->current_node);
PF2P(node_posf,node_pos);
#endif
node_pos.y += self->priv->y_offset;
node_width = ND_width (self->priv->current_node);
node_height = ND_height (self->priv->current_node);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment