From 36f891c6cd7fbed5185530573818ff7e8aa17da9 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 6 Apr 2018 14:07:58 +0100 Subject: [PATCH] Changed TextBase::setAlignment() to use computeGlyphRepresentation(); rather than computePositions(); to address issues seen with calling Text::setAlignment() after calls to Text::setText() --- src/osgText/TextBase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgText/TextBase.cpp b/src/osgText/TextBase.cpp index 50cf22a94..afc49dc57 100644 --- a/src/osgText/TextBase.cpp +++ b/src/osgText/TextBase.cpp @@ -298,8 +298,8 @@ void TextBase::setAlignment(AlignmentType alignment) if (_alignment==alignment) return; _alignment = alignment; - computePositions(); - // computeGlyphRepresentation(); + //computePositions(); + computeGlyphRepresentation(); } void TextBase::setAxisAlignment(AxisAlignment axis)