From c7809ce11e9aea0f3f2d3d8d478de0b1e6cf348e Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Thu, 9 Jun 2016 07:47:32 +0000
Subject: [PATCH] fix

---
 Geo/discreteDiskFace.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Geo/discreteDiskFace.h b/Geo/discreteDiskFace.h
index 3929f8f18b..23a01ebf4d 100644
--- a/Geo/discreteDiskFace.h
+++ b/Geo/discreteDiskFace.h
@@ -58,10 +58,11 @@ class triangulation {
   int idNum; // number of identification, for hashing purposes
 
   std::list<GEdge*> my_GEdges;
-  
+
   //methods
-  int genus(){
-    return ( -vert.size() + ed2tri.size() - tri.size() + 2 - bord.size() )/2;
+  int genus()
+  {
+    return ( ed2tri.size() - vert.size() - tri.size() + 2 - bord.size() )/2;
   }
 
   void assignVert()
-- 
GitLab