Skip to content

Commit

Permalink
Fix build with graphviz 10.0 (#3373)
Browse files Browse the repository at this point in the history
Replace TRUE with 1, since the TRUE macro has been removed.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
  • Loading branch information
scpeters authored Feb 21, 2024
1 parent 6a9d39c commit 3a9efee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gazebo/gui/qgv/QGVSubGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ QString QGVSubGraph::name() const

QGVNode *QGVSubGraph::addNode(const QString &label)
{
Agnode_t *node = agnode(_sgraph->graph(), NULL, TRUE);
Agnode_t *node = agnode(_sgraph->graph(), NULL, 1);
if (node == NULL)
{
qWarning()<<"Invalid sub node :"<<label;
return 0;
}
agsubnode(_sgraph->graph(), node, TRUE);
agsubnode(_sgraph->graph(), node, 1);

QGVNode *item = new QGVNode(new QGVNodePrivate(node), _scene);
item->setLabel(label);
Expand All @@ -66,10 +66,10 @@ QGVSubGraph *QGVSubGraph::addSubGraph(const QString &_name, bool cluster)
if (cluster)
{
sgraph = agsubg(_sgraph->graph(),
("cluster_" + _name).toLocal8Bit().data(), TRUE);
("cluster_" + _name).toLocal8Bit().data(), 1);
}
else
sgraph = agsubg(_sgraph->graph(), _name.toLocal8Bit().data(), TRUE);
sgraph = agsubg(_sgraph->graph(), _name.toLocal8Bit().data(), 1);

if (sgraph == NULL)
{
Expand Down

0 comments on commit 3a9efee

Please sign in to comment.