minor fix in cg_view.c

Signed-off-by: Harry Young <hendrik.gerritzen@googlemail.com>