From: san Date: Thu, 20 Jan 2005 14:11:08 +0000 (+0000) Subject: PAL7360 X-Git-Tag: V2_2_0b2~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9bb681b8008911b5de76f53b64360da4df573dea;p=modules%2Fgeom.git PAL7360 --- diff --git a/src/GEOMBase/GEOMBase_Helper.cxx b/src/GEOMBase/GEOMBase_Helper.cxx index 5bb5d91e8..69196f3aa 100755 --- a/src/GEOMBase/GEOMBase_Helper.cxx +++ b/src/GEOMBase/GEOMBase_Helper.cxx @@ -88,6 +88,9 @@ GEOMBase_Helper::GEOMBase_Helper() //================================================================ GEOMBase_Helper::~GEOMBase_Helper() { + if ( !QAD_Application::getDesktop() ) + return; + if ( myPreview.size() ) erasePreview(); if ( hasCommand() )