Qt: do not crash in PtInRegion if passed handle is not of HRGN type. issue #27080


git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@47055 4005530d-fff6-0310-9dd1-cebe43e6787f
Gtk2: do not crash inside PtInRegion if passed handle is not of HRGN type. issue #27080


git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@47056 4005530d-fff6-0310-9dd1-cebe43e6787f