Geom: Fixed issue with Coords

git-svn-id: svn://ultimatepp.org/upp/trunk@14649 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-07-01 19:38:23 +00:00
parent f33ff30acb
commit a864cffc19
2 changed files with 5 additions and 3 deletions

View file

@ -126,7 +126,8 @@ GeomRefCon<T>::~GeomRefCon()
if(t && t->GetRefCount() == 1)
RefMemStat::App().Remove(typeid(*t).name(), t->GetAllocIndex());
#endif//REF_DEBUG
t->Release();
if(t)
t->Release();
}
template <class T>
@ -139,7 +140,8 @@ GeomRefCon<T>& GeomRefCon<T>::operator = (const GeomRefCon<T>& rp)
if(old && old->GetRefCount() == 1)
RefMemStat::App().Remove(typeid(*old).name(), old->GetAllocIndex());
#endif//REF_DEBUG
old->Release();
if(old)
old->Release();
return *this;
}

View file

@ -850,7 +850,7 @@ GisCoords GisCoords::GetEPSG(int code)
default:
return GisCoords();
}
gc->ident = NFormat("EPSG:%d", code);
gc->ident = Format("EPSG:%d", code);
gc->SyncArgs();
return GisCoords(gc);
}