SVN commit 546540 by staikos: re-apply previous changes. 1) fixes spacing a bit, makes it more legible 2) removes some unused objects and variables 3) pushes variables into the proper scopes M +78 -86 kstpsdgenerator.cpp