From 4474b377ab5bb1fd0aa48aacac405d504088e0c1 Mon Sep 17 00:00:00 2001
From: Florent Lamiraux <florent@laas.fr>
Date: Tue, 5 May 2020 17:17:42 +0200
Subject: [PATCH] Fix several minor issues

  - replace call to deprecated method,
  - include amsmath package to generate documentation,
  - fix unit test.
---
 doc/Doxyfile.extra.in         | 2 ++
 src/problem.cc                | 2 +-
 tests/test-constraintgraph.cc | 2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/doc/Doxyfile.extra.in b/doc/Doxyfile.extra.in
index 9ca64de..6ad3914 100644
--- a/doc/Doxyfile.extra.in
+++ b/doc/Doxyfile.extra.in
@@ -8,3 +8,5 @@ ALIASES   += Link{1}="\ref \1"
 ALIASES   += Link{2}="\ref \1 \"\2\""
 ALIASES   += LHPP{2}="\Link{hpp::\1::\2,\2}"
 ALIASES   += LPinocchio{1}="\LHPP{pinocchio,\1}"
+
+EXTRA_PACKAGES = {amsmath}
diff --git a/src/problem.cc b/src/problem.cc
index aa18b9b..d22119a 100644
--- a/src/problem.cc
+++ b/src/problem.cc
@@ -101,7 +101,7 @@ namespace hpp {
     {
       pvFactory_ = factory;
       pvTol_ = tol;
-      if (graph_) graph_->setDirty();
+      if (graph_) graph_->invalidate();
     }
 
     void Problem::checkProblem () const
diff --git a/tests/test-constraintgraph.cc b/tests/test-constraintgraph.cc
index 6de25dd..8fd07b7 100644
--- a/tests/test-constraintgraph.cc
+++ b/tests/test-constraintgraph.cc
@@ -148,7 +148,7 @@ BOOST_AUTO_TEST_CASE (Initialization)
   initialize(true);
   hpp::manipulation::DevicePtr_t robot(graph_->robot());
   graph_->addNumericalConstraint(LockedJoint::create
-    (robot->jointAt(1), LiegroupElement(LiegroupSpace::R1())));
+    (robot->jointAt(1), LiegroupElement(LiegroupSpace::R1(true))));
   for (std::size_t i=0; i < components.size(); ++i)
   {
     EdgePtr_t edge(HPP_DYNAMIC_PTR_CAST(Edge, components[i]));
-- 
GitLab