From: mpech Date: Mon, 23 May 2011 09:50:33 +0000 (+0200) Subject: fix segfault when accessing vvToolCropImage in toolMenu when no image are opened. X-Git-Tag: v1.3.0~345^2~6 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=71384a98b8774c033c1626e00d30a9d130b27013;p=clitk.git fix segfault when accessing vvToolCropImage in toolMenu when no image are opened. This case should not happen if tools are disabled (see issue #461) when no image are opened. --- diff --git a/vv/vvToolCropImage.cxx b/vv/vvToolCropImage.cxx index 5811756..2030407 100644 --- a/vv/vvToolCropImage.cxx +++ b/vv/vvToolCropImage.cxx @@ -86,7 +86,9 @@ void vvToolCropImage::closeEvent(QCloseEvent *event) { // Reset extends for(int i=0; iaccept(); } //------------------------------------------------------------------------------