BUG: SliceLogic: Fix "Bad plane coordinate system" vtkPlaneSource error
requested to merge github/fork/jcfr/fix-qMRMLLayoutManagerWithCustomFactoryTest-vtk8-opengl2 into master
Created by: jcfr
The errors can be reproduced using Slicer built against Qt4/VTK7/OpenGL or Qt5/VTK8/OpenGL2 by: (1) switching to "Conventional" (or "Conventional Widescreen") layout (2) and re-sizing the viewers using the "spacer" until their are hidden.
This commit also fixes qMRMLLayoutManagerWithCustomFactoryTest that was failing with the same error when built using Qt5/VTK8/OpenGL2.
Error similar to the one copied below:
Bad plane coordinate system
Algorithm vtkPlaneSource(0x4e5a020) returned failure for request: vtkInformation (0x4e5ca40)
Debug: Off
Modified Time: 978985
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA
ALGORITHM_AFTER_FORWARD: 1
FROM_OUTPUT_PORT: 0
FORWARD_DIRECTION: 0