Changeset e4ffc4 in git for gfanlib/gfanlib_zfan.cpp


Ignore:
Timestamp:
Sep 27, 2016, 11:24:15 AM (7 years ago)
Author:
Yue <ren@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '00e2e9c41af3fde1273eb3633f4c0c7c3db2579d')
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.