fixed bug in command line operation caused by layout window not being created
Authored by: skyebend 2007-08-17
Parent: [r112]
Child: [r114]