[[ Bug 12961 ]] Make sure we call EndPrintInfo in EndPrintDialog so that sheets work correctly.
Merge branch 'bugfix-12961' into develop