From b1d1f2379622fe5298d7109feb1be63b6d266c79 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 13 Dec 2000 13:17:59 +0000 Subject: [PATCH] Corrected bug when selecting holes --- Unix/CbGeom.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Unix/CbGeom.cpp b/Unix/CbGeom.cpp index f80d7b6167..4a91362106 100644 --- a/Unix/CbGeom.cpp +++ b/Unix/CbGeom.cpp @@ -1,4 +1,4 @@ -/* $Id: CbGeom.cpp,v 1.6 2000-12-01 13:38:58 geuzaine Exp $ */ +/* $Id: CbGeom.cpp,v 1.7 2000-12-13 13:17:59 geuzaine Exp $ */ #include "Gmsh.h" #include "GmshUI.h" @@ -51,11 +51,13 @@ int SelectContour (int type, int num, List_T *Liste1){ for(i=0;i<List_Nbr(Liste1);i++){ List_Read(Liste1,i,&ip); + printf("%d ", ip); switch(type){ case ENT_LINE : HighlightEntityNum(0,abs(ip),0,1); break ; case ENT_SURFACE : HighlightEntityNum(0,0,abs(ip),1); break ; } } + printf("\n"); List_Delete(Liste2); return k; @@ -213,7 +215,6 @@ void geom_event_handler (int event) { Replot(); break; } - List_Reset(Liste1); if(SelectContour (type, (type==ENT_LINE)?c->Num:s->Num, Liste1)){ if(type==ENT_LINE) add_loop(Liste1,TheFileName,&zone); -- GitLab