[[ Bugfix 12496 ]] Set the clipping rect for text blocks correctly
Merge pull request #764 from runrevfraser/bugfix-12496

Bugfix 12496