Kaydet (Commit) d93813d8 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

OutputDevice::GetCaretPositions takes sal_Int32 nIndex parameter

...since 16b44693 "Use OUString / sal_Int32 in
vcl(outdev3.cxx,textlayout.cxx)"

Change-Id: I9e77bf801c6d79e1993ac6ddecf740b3362aeafe
Reviewed-on: https://gerrit.libreoffice.org/48364Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst c28c1be1
......@@ -38,7 +38,7 @@ AccessibleStringWrap::AccessibleStringWrap( OutputDevice& rDev, SvxFont& rFont,
void AccessibleStringWrap::GetCharacterBounds( sal_Int32 nIndex, tools::Rectangle& rRect )
{
DBG_ASSERT(nIndex >= 0 && nIndex <= USHRT_MAX,
DBG_ASSERT(nIndex >= 0,
"SvxAccessibleStringWrap::GetCharacterBounds: index value overflow");
mrFont.SetPhysFont( &mrDev );
......@@ -55,7 +55,7 @@ void AccessibleStringWrap::GetCharacterBounds( sal_Int32 nIndex, tools::Rectangl
else
{
long aXArray[2];
mrDev.GetCaretPositions( maText, aXArray, static_cast< sal_uInt16 >(nIndex), 1 );
mrDev.GetCaretPositions( maText, aXArray, nIndex, 1 );
rRect.Left() = 0;
rRect.Top() = 0;
rRect.SetSize( Size(mrDev.GetTextHeight(), labs(aXArray[0] - aXArray[1])) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment