summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-07-22 06:34:57 +0000
committerOliver Bolte <obo@openoffice.org>2008-07-22 06:34:57 +0000
commitc9ac83779fd058eff526cab13b132657065af817 (patch)
tree5e03d18a31984104cf476c00b755aaf4920fabd6 /accessibility
parent8f48277d3e6c73076af1544ac2f2cd33c54c052d (diff)
INTEGRATION: CWS pba11y01 (1.6.4); FILE MERGED
2008/07/10 11:32:01 tl 1.6.4.1: #i17566# charcter bounds and paragraph bounds fixed
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/source/extended/textwindowaccessibility.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/accessibility/source/extended/textwindowaccessibility.cxx b/accessibility/source/extended/textwindowaccessibility.cxx
index ed496d7ac333..905e3fff5cd5 100644
--- a/accessibility/source/extended/textwindowaccessibility.cxx
+++ b/accessibility/source/extended/textwindowaccessibility.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: textwindowaccessibility.cxx,v $
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
* This file is part of OpenOffice.org.
*
@@ -891,7 +891,7 @@ Document::retrieveParagraphBounds(ParagraphImpl const * pParagraph,
return ::css::awt::Rectangle(
static_cast< ::sal_Int32 >(aOrig.X()),
- static_cast< ::sal_Int32 >(aOrig.Y()) + nPos,
+ static_cast< ::sal_Int32 >(aOrig.Y()) + nPos - m_nViewOffset,
m_rView.GetWindow()->GetOutputSizePixel().Width(), aPara->getHeight());
// XXX numeric overflow (3x)
}
@@ -995,7 +995,7 @@ Document::retrieveCharacterBounds(ParagraphImpl const * pParagraph,
- aLeft.Left());
// XXX numeric overflow (4x)
aBounds = ::css::awt::Rectangle(static_cast< ::sal_Int32 >(aLeft.Left()),
- static_cast< ::sal_Int32 >(aLeft.Top()),
+ static_cast< ::sal_Int32 >(aLeft.Top() - m_nViewOffset),
nWidth,
static_cast< ::sal_Int32 >(aLeft.Bottom()
- aLeft.Top()));