Set fromC appropriately. Fixes #7844