Gnats 5046: SCT crash: Setting multiple values which extends a Slot's series range, in the SCT "Always Sync" mode

A RiverWare crash can occur when setting series values in a multiple-cell selection when the following conditions are both true: (1) The selected cells are outside of the currently defined time series of the Slot, and (2) The SCT configuration is in the "Always Synch" mode, that is, on the Config "General" tab, having the this checkbox checked: [X] Always Syncrhonize Range with Slots.

See images: bug5056_Sct.gif and bug5056_SctConfig.gif

(1) Open the bug5056.mdl.gz model file and bug5056.sct.gz SCT.
(2) Select the three top cells in the 2nd data column (which are gray).
(3) Type a number, and hit "Enter" ... CRASH.

Workaround:
When in this SCT mode, and when entering data which will result in extending the the time range of a SeriesSlot, first set the value of the single earliest cell (if setting values before the current defined range) or the single latest cell (if setting values after the current defined range) before setting values of other, multiple cells.

Fix:
The SctDialog::sctModelData_SlotRangeChanged() is being called as a result of a SERIESSLOT_SERIES_CHANGED_2 Slot callback during the iteration through the multiple selected cells for setting the value on those cells. The resulting call to "fullRecomp" is destroying the data structure being iterated. One way to fix this is to defer the call to "fullRecomp" using a QTimer in the SctDialog class.