Bugzilla – Attachment 80966 Details for
Bug 63616
Vertical ruler is unreadable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Non working patch
boundrect.patch (text/plain), 1.30 KB, created by
خالد حسني
on 2013-06-17 22:29:26 UTC
(
hide
)
Description:
Non working patch
Filename:
MIME Type:
Creator:
خالد حسني
Created:
2013-06-17 22:29:26 UTC
Size:
1.30 KB
patch
obsolete
>diff --git a/vcl/coretext/ctlayout.cxx b/vcl/coretext/ctlayout.cxx >index 18df73e..ab55f76 100644 >--- a/vcl/coretext/ctlayout.cxx >+++ b/vcl/coretext/ctlayout.cxx >@@ -432,6 +432,15 @@ void CTLayout::GetCaretPositions( int nMaxIndex, sal_Int32* pCaretXArray ) const > bool CTLayout::GetBoundRect( SalGraphics& rGraphics, Rectangle& rVCLRect ) const > { > AquaSalGraphics& rAquaGraphics = static_cast<AquaSalGraphics&>(rGraphics); >+ >+ CGContextSaveGState( rAquaGraphics.mrContext ); >+ >+ if( mpTextStyle->mfFontRotation != 0.0 ) >+ { >+ const CGFloat fRadians = mpTextStyle->mfFontRotation; >+ CGContextRotateCTM( rAquaGraphics.mrContext, +fRadians ); >+ } >+ > CGRect aMacRect = CTLineGetImageBounds( mpCTLine, rAquaGraphics.mrContext ); > CGPoint aMacPos = CGContextGetTextPosition( rAquaGraphics.mrContext ); > aMacRect.origin.x -= aMacPos.x; >@@ -439,6 +448,8 @@ bool CTLayout::GetBoundRect( SalGraphics& rGraphics, Rectangle& rVCLRect ) const > > const Point aPos = GetDrawPosition( Point(mnBaseAdv, 0) ); > >+ CGContextRestoreGState( rAquaGraphics.mrContext ); >+ > // CoreText top-bottom are vertically flipped from a VCL aspect > rVCLRect.Left() = aPos.X() + mfFontScale * aMacRect.origin.x; > rVCLRect.Right() = aPos.X() + mfFontScale * (aMacRect.origin.x + aMacRect.size.width);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 63616
:
78115
|
78116
|
80889
| 80966