diff --git a/Code/Visu/otbImageViewer.txx b/Code/Visu/otbImageViewer.txx index 71a25b641cffc4791c26ba9db388a671bc0e8344..df8416300defb273fdcaf05e54398a2d4f7ecd9c 100644 --- a/Code/Visu/otbImageViewer.txx +++ b/Code/Visu/otbImageViewer.txx @@ -64,7 +64,10 @@ namespace otb ::~ImageViewer() { - Hide(); + if( m_Built == true) + { + Hide(); + } if (m_FullWindow!=NULL) {