Commit 0507a4ca authored by finetjul's avatar finetjul
Browse files

BUG: Crash when trying to access a view node screenshot

Screenshot imagedata must be initialized to null

git-svn-id: http://svn.slicer.org/Slicer4/trunk@15641 3bd1e089-480b-0410-8dfb-8563597acbee
parent 890f16e1
......@@ -12,21 +12,25 @@ Version: $Revision: 1.14 $
=========================================================================auto=*/
#include <string>
#include <iostream>
#include <sstream>
// MRML includes
#include "vtkMRMLScene.h"
#include "vtkMRMLSceneViewNode.h"
#include "vtkMRMLStorageNode.h"
// VTKsys includes
#include <vtksys/stl/string>
#include <vtksys/SystemTools.hxx>
#include "vtkObjectFactory.h"
// VTK includes
#include "vtkCallbackCommand.h"
#include "vtkCollection.h"
#include <vtkImageData.h>
#include "vtkObjectFactory.h"
#include "vtkMRMLSceneViewNode.h"
#include "vtkMRMLScene.h"
#include "vtkMRMLStorageNode.h"
// STD includes
#include <string>
#include <iostream>
#include <sstream>
//------------------------------------------------------------------------------
vtkMRMLSceneViewNode* vtkMRMLSceneViewNode::New()
......@@ -61,7 +65,7 @@ vtkMRMLSceneViewNode::vtkMRMLSceneViewNode()
this->HideFromEditors = 1;
this->Nodes = NULL;
this->m_ScreenShot = NULL;
}
//----------------------------------------------------------------------------
......
......@@ -21,7 +21,7 @@
#include "vtkMRMLScene.h"
#include "vtkMRMLNode.h"
#include <vtkImageData.h>
class vtkImageData;
class VTK_MRML_EXPORT vtkMRMLSceneViewNode : public vtkMRMLNode
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment