mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 13:30:34 +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;
|
||||
|
||||
string * GetBCNamePtr ( int bcnr )
|
||||
{ return bcnames[bcnr]; }
|
||||
{ return bcnr < bcnames.Size() ? bcnames[bcnr] : nullptr; }
|
||||
|
||||
///
|
||||
void ClearFaceDescriptors()
|
||||
|
Loading…
Reference in New Issue
Block a user