Changeset e4ffc4 in git


Ignore:
Timestamp:
Sep 27, 2016, 11:24:15 AM (8 years ago)
Author:
Yue <ren@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '648d28f488f6ff08f5607ff229b9ad9e4a5b93c2')
Children:
6aca64497b457e982197c5264a6b4e6147f9c757
Parents:
dbb5c7e9da6d294f037ee748411c33ef5fa5c7ac
Message:
fix: crash when asking for certain dimensions in an empty fan
File:
1 edited

Legend:

Unmodified
Added
Removed
  • gfanlib/gfanlib_zfan.cpp

    rdbb5c7e re4ffc4  
    281281      return complex->getAmbientDimension()-complex->getMaxDim();
    282282    if(coneCollection)
     283    {
     284      if(coneCollection->isEmpty())
     285        return -1;
    283286      return coneCollection->getAmbientDimension()-coneCollection->getMaxDimension();
     287    }
    284288    assert(0);
    285289    return 0;
     
    290294      return complex->getMaxDim();
    291295    if(coneCollection)
     296    {
     297      if(coneCollection->isEmpty())
     298        return -1;
    292299      return coneCollection->getMaxDimension();
     300    }
    293301    assert(0);
    294302    return 0;
Note: See TracChangeset for help on using the changeset viewer.