#270363 by dww: Fixed problem with pane title rendering in the content editor (ternary was backwards). Also improved readability and added explanatory comment.