Page MenuHomePhabricator

QmitkSlicesInterpolator: existence of multi-widget not guaranteed anymore
Closed, ResolvedPublic

Description

The openCherry based application does not always have a multiwidget and sometimes more than one.

This is not reflected in the QmitkSlicesInterpolator class, which is only initialized once with a multiwidget. This may need to be redisigned.

One symptom is

  • start ExtApp
  • start InteractiveSegmentation (no multiwidget visible yet)
  • open Pic3D.pic.gz (multiwidget appears)
  • create a new segmentation (organ type + name does not matter)
  • activate the "interpolation" checkbox

--> application crashes

Event Timeline

The crash is because of NULL pointers in QmitkSlicesInterpolator for m_ToolManager and m_MultiWidget. The m_ToolManager member is accessed although it should not be.

Fix committed in revision 17441.

Still have to check, whether QmitkSlicesInterpolator correctly works with multiple initialization.

Adapted widget to cope with re-initialization with possibly differnt multi-widget.

Fix committed in revision 17444.

Merging "applicazion modules" component with "ExtApp plugins"