From 139b008b0f8d2c1c46a0fc000ff18e14e07ae1da Mon Sep 17 00:00:00 2001 From: dmitry Date: Sat, 16 Dec 2017 22:59:17 +0000 Subject: [PATCH] cocoa: not flipping NSRect vertical coordinates if the super view is already flipped. Came as a part of a patch by David Jenkins for #32828. However, being applied to resolve #32176 git-svn-id: trunk@56759 - --- lcl/interfaces/cocoa/cocoaprivate.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lcl/interfaces/cocoa/cocoaprivate.pp b/lcl/interfaces/cocoa/cocoaprivate.pp index 7e647bc8a3..fe77913feb 100644 --- a/lcl/interfaces/cocoa/cocoaprivate.pp +++ b/lcl/interfaces/cocoa/cocoaprivate.pp @@ -2599,7 +2599,7 @@ var svHeight: CGFloat; begin svHeight := GetNSViewSuperViewHeight(Self); - if Assigned(superview) then + if Assigned(superview) and not superview.isFlipped then begin LCLToNSRect(r, svHeight, ns) end