Re #7766. Fixed the pixel incrementing bug.
Merge remote branch 'origin/bugfix/7766_powgen_geometry'