Skip to content

Commit

Permalink
fix: broken copy constructor for fans
Browse files Browse the repository at this point in the history
  • Loading branch information
Yue Ren committed Oct 20, 2012
1 parent 1fc5892 commit a31952c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion gfanlib/gfanlib_zfan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,11 @@ namespace gfan
}
ZFan::ZFan(ZFan const& f):
complex(0),
coneCollection(0)
coneCollection(0),
cones(f.table(0,0)),
maximalCones(f.table(0,1)),
coneOrbits(f.table(1,0)),
maximalConeOrbits(f.table(1,1))
{
if(f.coneCollection)
{
Expand Down
2 changes: 1 addition & 1 deletion gfanlib/gfanlib_zfan.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ class ZFan
void ensureConeCollection()const;
void ensureComplex()const;
void killComplex()const;
std::vector<std::vector<IntVector> > &table(bool orbit, bool maximal)const;
public:
std::vector<std::vector<IntVector> > &table(bool orbit, bool maximal)const;
~ZFan();
ZFan():
coneCollection(0),
Expand Down

0 comments on commit a31952c

Please sign in to comment.