svx a11y: Rely on operator!= for awt::Rectangle comparison

Don't reimplement the logic.

Change-Id: Id89245e909cebd79955a5f5b42d4652b9f42a9fd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184805
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
Michael Weghorn 2025-04-29 23:48:52 +02:00
parent f98d81f008
commit e2230f7706

View File

@ -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 );