From 8bafe38c569afa2e1055eb647cb7ff161ddd1230 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 30 May 2012 08:53:00 +0200 Subject: i#87757: do not create empty Rectangle bounding box for glyphs: Enforce a minimum width and height of 1 in GlyphMetric::SetSize(), preventing X11SalGraphics::GetGlyphBoundRect() from returning a Rectangle that has one side set as RECT_EMPTY. This problem has surfaced due to the change of the status bar in ce14342c4292628a641a72d4f63d9c048e030c6a, causing the AccessibleStatusBarItem to fail in getCharacterBounds() because the text of the control, "Words: 0", now contains a space, for which an empty Rectangle bounding box is created, which results in a wrong return value from getCharacterBounds(): LOG> Character bounds outside component LOG> Character rect: 43, -566, 0, 0 LOG> Component rect: 91, 2, 71, 18 It turns out that the following test was disabled due to this problem, so re-enable it now: toolkit.AccessibleFixedText::com::sun::star::accessibility::XAccessibleText --- toolkit/qa/unoapi/knownissues.xcl | 4 ---- 1 file changed, 4 deletions(-) (limited to 'toolkit') diff --git a/toolkit/qa/unoapi/knownissues.xcl b/toolkit/qa/unoapi/knownissues.xcl index e6880b85efaf..a64fd8f78bd0 100644 --- a/toolkit/qa/unoapi/knownissues.xcl +++ b/toolkit/qa/unoapi/knownissues.xcl @@ -150,10 +150,6 @@ toolkit.UnoControlNumericField::com::sun::star::awt::XView toolkit.UnoControlCheckBox::com::sun::star::awt::XView toolkit.UnoScrollBarControl::com::sun::star::awt::XView - -### i87757 ### -toolkit.AccessibleFixedText::com::sun::star::accessibility::XAccessibleText - ### i37643 ### toolkit.AccessibleStatusBarItem::com::sun::star::accessibility::XAccessibleEventBroadcaster -- cgit