correct namedirection in bar axis painter (reported by rhunger, bug #2028032)