Fix for #363

Also needed to compare TextSegment as well as ToolTipText types.
Merge pull request #365 from 7sharp9/issue363

Fix for #363