summaryrefslogtreecommitdiff
path: root/svx/source/accessibility/AccessibleImageBullet.cxx
diff options
context:
space:
mode:
authorThorsten Behrens <thb@openoffice.org>2002-05-17 16:35:10 +0000
committerThorsten Behrens <thb@openoffice.org>2002-05-17 16:35:10 +0000
commit7dc72ae0f5ae84009a899698ecdad8c4b96879e1 (patch)
tree37be204521524e75730a97b865ced3430646a329 /svx/source/accessibility/AccessibleImageBullet.cxx
parenta43a35582ac042f00b3a029ea34c3468bea62bf0 (diff)
#98735# Added notify spinlock
Diffstat (limited to 'svx/source/accessibility/AccessibleImageBullet.cxx')
-rw-r--r--svx/source/accessibility/AccessibleImageBullet.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/svx/source/accessibility/AccessibleImageBullet.cxx b/svx/source/accessibility/AccessibleImageBullet.cxx
index 912172baec56..bf0e44e98a0a 100644
--- a/svx/source/accessibility/AccessibleImageBullet.cxx
+++ b/svx/source/accessibility/AccessibleImageBullet.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: AccessibleImageBullet.cxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: thb $ $Date: 2002-05-16 16:10:32 $
+ * last change: $Author: thb $ $Date: 2002-05-17 17:35:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -277,6 +277,7 @@ namespace accessibility
SvxTextForwarder& rCacheTF = GetTextForwarder();
EBulletInfo aBulletInfo = rCacheTF.GetBulletInfo( static_cast< USHORT > (GetParagraphIndex()) );
+ Rectangle aParentRect = rCacheTF.GetParaBounds( static_cast< USHORT >( GetParagraphIndex() ) );
if( aBulletInfo.nParagraph != EE_PARA_NOT_FOUND &&
aBulletInfo.bVisible &&
@@ -284,6 +285,9 @@ namespace accessibility
{
Rectangle aRect = aBulletInfo.aBounds;
+ // subtract paragraph position (bullet pos is absolute in EditEngine/Outliner)
+ aRect.Move( -aParentRect.Left(), -aParentRect.Top() );
+
// convert to screen coordinates
Rectangle aScreenRect = AccessibleEditableTextPara::LogicToPixel( aRect,
rCacheTF.GetMapMode(),