When reviewing a model, one has the possibility to plot the data and the according events (i.e., Predicted & observed). In Version v.4.0.2 the plot won't show all the events, if there exists more than 7 conditions.
https://sourceforge.net/p/pspm/discussion/bugs/thread/c505516b0b/
Each condition should be displayed and be marked with a color.
You will see that not all conditions are shown.
The problem occurs when assigning different colors to the events for the plot. In some cases m becomes 0 and then an index out of bounds error occurs.
The solution is to replace 'm = floor(j/cl);' in line 153 (for older revisions than 6667, line 146) to 'm = floor((j-0.1)/cl);'
Diff: