diff --git a/vcl/coretext/ctlayout.cxx b/vcl/coretext/ctlayout.cxx index 1e89a39e4ac6..721d7708afab 100644 --- a/vcl/coretext/ctlayout.cxx +++ b/vcl/coretext/ctlayout.cxx @@ -426,6 +426,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(rGraphics); #ifdef IOS