[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - vcl/coretext

Tor Lillqvist tml at iki.fi
Thu Jun 20 04:20:53 PDT 2013


 vcl/coretext/ctlayout.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit cc91f2bec18b12795fa9d19feda6dfca88a6bacb
Author: Tor Lillqvist <tml at iki.fi>
Date:   Wed Jun 19 15:25:26 2013 +0300

    Add comment
    
    Change-Id: Id3ec71e8da07a8bf1c979585eb84cd5a9d6f7a77
    (cherry picked from commit 47dca10811a31cf28e72b9bc034b9d8975327df3)
    Reviewed-on: https://gerrit.libreoffice.org/4389
    Reviewed-by: Noel Power <noel.power at suse.com>
    Tested-by: Noel Power <noel.power at suse.com>

diff --git a/vcl/coretext/ctlayout.cxx b/vcl/coretext/ctlayout.cxx
index 8c99ca1..9bf147e 100644
--- a/vcl/coretext/ctlayout.cxx
+++ b/vcl/coretext/ctlayout.cxx
@@ -425,6 +425,11 @@ void CTLayout::GetCaretPositions( int nMaxIndex, sal_Int32* pCaretXArray ) const
 
 bool CTLayout::GetBoundRect( SalGraphics& rGraphics, Rectangle& rVCLRect ) const
 {
+    // Closely mimic DrawText(), except that instead of calling
+    // CTLineDraw() to draw the line, we call CTLineGetImageBounds()
+    // to get its bounds. But all the coordinate system manipulation
+    // before that is the same => should be factored out?
+
     AquaSalGraphics& rAquaGraphics = static_cast<AquaSalGraphics&>(rGraphics);
 
 #ifdef IOS


More information about the Libreoffice-commits mailing list