Assert fail when the legend takes too much space in a line chart view
If the legend takes too much spaces, the chart fails to draws on an assert and ParaView segfaults.
Steps to reproduce :
- Open ParaView
- Open SinceWaves.csv, Apply
- Show in a LineChartView
- Show all arrays
- place legend at the bottom
- Hide last three arrays
- Increase legend font size to 14
- Show one more array
paraview: /home/glow/work/paraview/paraviewFirst/paraview/VTK/Rendering/Context2D/vtkContextClip.cxx:71: virtual void vtkContextClip::SetClip(float, float, float, float): Assertion `width >= 0 && height >= 0' failed.
Thread 1 "paraview" received signal SIGABRT, Aborted.
0x00007ffff7c08755 in raise () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007ffff7c08755 in raise () from /usr/lib/libc.so.6
#1 0x00007ffff7bf3851 in abort () from /usr/lib/libc.so.6
#2 0x00007ffff7bf3727 in __assert_fail_base.cold () from /usr/lib/libc.so.6
#3 0x00007ffff7c01026 in __assert_fail () from /usr/lib/libc.so.6
#4 0x00007ffff16c8b05 in vtkContextClip::SetClip (this=0x555559abcda0, x=20, y=574, width=242, height=-2) at /home/glow/work/paraview/paraviewFirst/paraview/VTK/Rendering/Context2D/vtkContextClip.cxx:71