From 71384a98b8774c033c1626e00d30a9d130b27013 Mon Sep 17 00:00:00 2001 From: mpech Date: Mon, 23 May 2011 11:50:33 +0200 Subject: [PATCH] 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. --- vv/vvToolCropImage.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); } //------------------------------------------------------------------------------ -- 2.47.1