Bug 890495. Fix comparison of legend position. r=roc