Removed superfluous check for button identity in the text alignment method. This removed a compiler warning.