How to centre an objects x,y,z cursor

Sometimes an objects cursor gets separated from the object like in my attached picture.
Is there a way to centre it back again?

Also sorry if this isn’t the correct place to post this.

This happens to me when realtime rendering is turned off in the viewport. Turning it on again correctly places the gizmo.

That didn’t make any difference unfortunately.
Any other ideas?