[[ Bug 12804 ]] Compute source rect correctly when starting custom print session.
Merge branch 'bugfix-12804' into release-6.6.3