Merged requested to merge work/crash_fix into master
The current code checks for !complexOption, but then continues to de-reference it in the second clause of the statement leading to an inveitable crash.
I assume it's meant to be an
or for the latter part of the statement
to make sense.
Testing done: Opened the style tab of gammaray and it no longer crashed