changeset 5733:ac4d9e43d517

RT-34346: TextAlignment center ceased to work
author Felipe Heidrich <felipe.heidrich@oracle.com>
date Mon, 18 Nov 2013 11:21:45 -0800
parents 68e5bc52a094
children 9500977f0627
files modules/graphics/src/main/java/com/sun/javafx/text/PrismTextLayout.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/javafx/text/PrismTextLayout.java	Mon Nov 18 21:03:36 2013 +0200
+++ b/modules/graphics/src/main/java/com/sun/javafx/text/PrismTextLayout.java	Mon Nov 18 11:21:45 2013 -0800
@@ -1286,7 +1286,7 @@
                 layoutCache.lines = lines;
                 layoutCache.layoutWidth = layoutWidth;
                 layoutCache.layoutHeight = layoutHeight;
-                layoutCache.analysis = flags | ANALYSIS_MASK;
+                layoutCache.analysis = flags & ANALYSIS_MASK;
                 synchronized (CACHE_SIZE_LOCK) {
                     int charCount = chars.length;
                     if (cacheSize + charCount > MAX_CACHE_SIZE) {