A bit of safety.

Should also silence Coverity.
This commit is contained in:
Jeff Young 2021-05-17 10:44:50 +01:00
parent c33b2cfa8d
commit 224d258474
1 changed files with 1 additions and 0 deletions

View File

@ -403,6 +403,7 @@ public:
*/
inline bool IsLayerVisible( int aLayer ) const
{
wxCHECK( aLayer >= 0, false);
wxCHECK( aLayer < (int) m_layers.size(), false );
if( GetPrintMode() > 0 )