X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FcreawxVTKRenderWindowInteractor.cxx;h=4f6a0bb28b6638cf580728394d25c7a6a401a9f9;hb=fbe2c10bce301f4532a1eaed60df329889c300d5;hp=4d0091b7fe4b324f24a748c3d2d4a2dac20a9c06;hpb=2f22ba400246a1a3841fd1ac1de6b461dc01a022;p=crea.git diff --git a/src/creawxVTKRenderWindowInteractor.cxx b/src/creawxVTKRenderWindowInteractor.cxx index 4d0091b..4f6a0bb 100644 --- a/src/creawxVTKRenderWindowInteractor.cxx +++ b/src/creawxVTKRenderWindowInteractor.cxx @@ -3,8 +3,8 @@ Program: Visualization Toolkit Module: $RCSfile: creawxVTKRenderWindowInteractor.cxx,v $ Language: C++ - Date: $Date: 2009/01/07 12:54:16 $ - Version: $Revision: 1.3 $ + Date: $Date: 2009/10/05 19:41:56 $ + Version: $Revision: 1.5 $ Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. @@ -160,7 +160,7 @@ creawxVTKRenderWindowInteractor::creawxVTKRenderWindowInteractor(wxWindow *paren #if defined(__WXGTK__) && defined(USE_WXGLCANVAS) : vtkRenderWindowInteractor(), wxGLCanvas(parent, id, pos, size, style, name) #else - : vtkRenderWindowInteractor(), wxWindow(parent, id, pos, size, style, name) + : wxWindow(parent, id, pos, size, style, name), vtkRenderWindowInteractor() #endif //__WXGTK__ , timer(this, ID_creawxVTKRenderWindowInteractor_TIMER) , ActiveButton(wxEVT_NULL) @@ -704,7 +704,7 @@ void creawxVTKRenderWindowInteractor::SetRenderWhenDisabled(int newValue) //resulting in a Render(), resulting in Update() being called whilst //still in progress. - RenderWhenDisabled = ((bool)newValue); + RenderWhenDisabled = (bool)(newValue!=0); } //--------------------------------------------------------------------------- //