mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-29 14:22:25 -06:00
Geom: Fixed issue with Coords
git-svn-id: svn://ultimatepp.org/upp/trunk@14649 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
f33ff30acb
commit
a864cffc19
2 changed files with 5 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue