Since this is relatively clear, I committed it to the main branch without a proper bug report. But since I don't have commit rights in the FPC project I cannot help you with the related FPCustomCanvas issue.
Once again, you are wasting your time when you publish fixes here in the forum. They will be forgotten after a few days since most developers do not read the forum, and if they do they usually insist on a proper bug report for better documentation.
I really do not understand why you have such an aversion against the bug tracker?