mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 13:50:33 +05:00
Check for array size in Mesh::GetBCNamePtr()
This commit is contained in:
parent
ca0fcb1e5e
commit
0e2fe66650
@ -582,7 +582,7 @@ namespace netgen
|
|||||||
const string & GetBCName ( int bcnr ) const;
|
const string & GetBCName ( int bcnr ) const;
|
||||||
|
|
||||||
string * GetBCNamePtr ( int bcnr )
|
string * GetBCNamePtr ( int bcnr )
|
||||||
{ return bcnames[bcnr]; }
|
{ return bcnr < bcnames.Size() ? bcnames[bcnr] : nullptr; }
|
||||||
|
|
||||||
///
|
///
|
||||||
void ClearFaceDescriptors()
|
void ClearFaceDescriptors()
|
||||||
|
Loading…
Reference in New Issue
Block a user