metomi/rose — pull request #957 by benfitzpatrick (2013-10-02 15:34:46+00:00)
Title: rose edit: fix add latent mixed widget

If a variable uses the mixed widget (valuewidget.array.mixed) and is in a latent state, adding the variable will result in a traceback:
```
File "........../lib/python/rose/config_editor/valuewidget/array/mixed.py", line 148, in get_focus_index
val = self.value_array[r * self.num_cols + i]
IndexError: list index out of range
```

This is because `self.value_array` is an empty list, and (in this case) it is trying to find the zeroth element. This adds a catch to stop it bothering - as a latent variable, it cannot have focus in any case.

@arjclark, please review.