diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2013-06-18 06:44:33 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2013-06-18 06:50:05 +0200 |
commit | 98741a2078ebd0a9c83f6e676f99de526990f423 (patch) | |
tree | 41a31007736c97188fa5c5cce432b8cd366949ac /vcl | |
parent | af9e58d6de158eb8f479f26c77c5e71e95b96881 (diff) |
Fix CTLayout::GetBoundRect()
was broken in 35b0a4cd274c1567cf0b8067eb01f17b82ee9f35
Change-Id: I803b510fc875ff9e48ed762114f6d63dad51ad7a
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/coretext/ctlayout.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/coretext/ctlayout.cxx b/vcl/coretext/ctlayout.cxx index 0ff356f6102b..e2a118b1e089 100644 --- a/vcl/coretext/ctlayout.cxx +++ b/vcl/coretext/ctlayout.cxx @@ -442,9 +442,9 @@ bool CTLayout::GetBoundRect( SalGraphics& rGraphics, Rectangle& rVCLRect ) const // CoreText top-bottom are vertically flipped from a VCL aspect rVCLRect.Left() = aPos.X() + aMacRect.origin.x; - rVCLRect.Right() = aPos.X() + aMacRect.origin.x + aMacRect.size.width; + rVCLRect.Right() = aPos.X() + (aMacRect.origin.x + aMacRect.size.width); rVCLRect.Bottom() = aPos.Y() - aMacRect.origin.y; - rVCLRect.Top() = aPos.Y() - aMacRect.origin.y + aMacRect.size.height; + rVCLRect.Top() = aPos.Y() - (aMacRect.origin.y + aMacRect.size.height); return true; } |