https://bugs.freedesktop.org/show_bug.cgi?id=56937

--- Comment #12 from Michael Meeks <[email protected]> ---
Wow - so it seems the spreadsheet a11y code is really broken and for some
reason we only see it now:

uno::Reference< XAccessible > SAL_CALL
    ScAccessibleTableBase::getAccessibleChild(sal_Int32 nIndex)
        throw (uno::RuntimeException,
        lang::IndexOutOfBoundsException)
{
    SolarMutexGuard aGuard;
    IsObjectValid();

    if (nIndex >= getAccessibleChildCount() || nIndex < 0)
        throw lang::IndexOutOfBoundsException();

    sal_Int32 nRow(0);
    sal_Int32 nColumn(0);
    sal_Int32 nTemp(maRange.aEnd.Col() - maRange.aStart.Col() + 1);
    nRow = nIndex / nTemp;
    nColumn = nIndex % nTemp;
    return getAccessibleCellAt(nRow, nColumn);
}

It rather looks like we're iterating over all the cells in a spreadsheet in
some horrible way - creating new a11y peers for them - just in order to see if
we have a hit test :-)

That looks really dumb to me ;-) apparently no cropping only for cells that are
visible even is present ;-)

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to