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:
parent
f98d81f008
commit
e2230f7706
@ -798,11 +798,7 @@ void AccessibleTextHelper_Impl::UpdateBoundRect()
|
|||||||
{
|
{
|
||||||
awt::Rectangle aNewRect = aHardRef->getBounds();
|
awt::Rectangle aNewRect = aHardRef->getBounds();
|
||||||
const awt::Rectangle& aOldRect = rChild.second;
|
const awt::Rectangle& aOldRect = rChild.second;
|
||||||
|
if (aNewRect != aOldRect)
|
||||||
if( aNewRect.X != aOldRect.X ||
|
|
||||||
aNewRect.Y != aOldRect.Y ||
|
|
||||||
aNewRect.Width != aOldRect.Width ||
|
|
||||||
aNewRect.Height != aOldRect.Height )
|
|
||||||
{
|
{
|
||||||
// visible data changed
|
// visible data changed
|
||||||
aHardRef->FireEvent( AccessibleEventId::BOUNDRECT_CHANGED );
|
aHardRef->FireEvent( AccessibleEventId::BOUNDRECT_CHANGED );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user