diff --git a/svx/source/accessibility/AccessibleTextHelper.cxx b/svx/source/accessibility/AccessibleTextHelper.cxx index 543262740b23..44488bfbf6cb 100644 --- a/svx/source/accessibility/AccessibleTextHelper.cxx +++ b/svx/source/accessibility/AccessibleTextHelper.cxx @@ -798,11 +798,7 @@ void AccessibleTextHelper_Impl::UpdateBoundRect() { awt::Rectangle aNewRect = aHardRef->getBounds(); const awt::Rectangle& aOldRect = rChild.second; - - if( aNewRect.X != aOldRect.X || - aNewRect.Y != aOldRect.Y || - aNewRect.Width != aOldRect.Width || - aNewRect.Height != aOldRect.Height ) + if (aNewRect != aOldRect) { // visible data changed aHardRef->FireEvent( AccessibleEventId::BOUNDRECT_CHANGED );