changeset 13521:48cb26c30242

8140543: Arrange font actions Reviewed-by: prr, srl, mschoene
author vadim
date Mon, 26 Oct 2015 23:41:41 +0300
parents 4efaa6871de2
children 24cfe95d2741
files src/java.desktop/share/native/libfontmanager/layout/IndicRearrangementProcessor.cpp src/java.desktop/share/native/libfontmanager/layout/IndicRearrangementProcessor.h src/java.desktop/share/native/libfontmanager/layout/IndicRearrangementProcessor2.cpp src/java.desktop/share/native/libfontmanager/layout/IndicRearrangementProcessor2.h
diffstat 4 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/share/native/libfontmanager/layout/IndicRearrangementProcessor.cpp	Wed Oct 21 14:55:18 2015 +0300
+++ b/src/java.desktop/share/native/libfontmanager/layout/IndicRearrangementProcessor.cpp	Mon Oct 26 23:41:41 2015 +0300
@@ -76,11 +76,11 @@
     }
 
     if (flags & irfMarkFirst) {
-        firstGlyph = (le_uint32)currGlyph;
+        firstGlyph = currGlyph;
     }
 
     if (flags & irfMarkLast) {
-        lastGlyph = (le_uint32)currGlyph;
+        lastGlyph = currGlyph;
     }
 
     doRearrangementAction(glyphStorage, (IndicRearrangementVerb) (flags & irfVerbMask), success);
@@ -118,7 +118,7 @@
         if (firstGlyph == lastGlyph) break;
         if (firstGlyph + 1 < firstGlyph) {
             success = LE_INDEX_OUT_OF_BOUNDS_ERROR;
-        break;
+            break;
         }
         a = glyphStorage[firstGlyph];
         ia = glyphStorage.getCharIndex(firstGlyph, success);
--- a/src/java.desktop/share/native/libfontmanager/layout/IndicRearrangementProcessor.h	Wed Oct 21 14:55:18 2015 +0300
+++ b/src/java.desktop/share/native/libfontmanager/layout/IndicRearrangementProcessor.h	Mon Oct 26 23:41:41 2015 +0300
@@ -76,8 +76,8 @@
     static UClassID getStaticClassID();
 
 protected:
-    le_uint32 firstGlyph;
-    le_uint32 lastGlyph;
+    le_int32 firstGlyph;
+    le_int32 lastGlyph;
 
     LEReferenceTo<IndicRearrangementSubtableHeader> indicRearrangementSubtableHeader;
     LEReferenceToArrayOf<IndicRearrangementStateEntry> entryTable;
--- a/src/java.desktop/share/native/libfontmanager/layout/IndicRearrangementProcessor2.cpp	Wed Oct 21 14:55:18 2015 +0300
+++ b/src/java.desktop/share/native/libfontmanager/layout/IndicRearrangementProcessor2.cpp	Mon Oct 26 23:41:41 2015 +0300
@@ -74,11 +74,11 @@
     }
 
     if (flags & irfMarkFirst) {
-        firstGlyph = (le_uint32)currGlyph;
+        firstGlyph = currGlyph;
     }
 
     if (flags & irfMarkLast) {
-        lastGlyph = (le_uint32)currGlyph;
+        lastGlyph = currGlyph;
     }
 
     doRearrangementAction(glyphStorage, (IndicRearrangementVerb) (flags & irfVerbMask), success);
@@ -115,7 +115,7 @@
         if (firstGlyph == lastGlyph) break;
         if (firstGlyph + 1 < firstGlyph) {
             success = LE_INDEX_OUT_OF_BOUNDS_ERROR;
-        break;
+            break;
         }
         a = glyphStorage[firstGlyph];
         ia = glyphStorage.getCharIndex(firstGlyph, success);
--- a/src/java.desktop/share/native/libfontmanager/layout/IndicRearrangementProcessor2.h	Wed Oct 21 14:55:18 2015 +0300
+++ b/src/java.desktop/share/native/libfontmanager/layout/IndicRearrangementProcessor2.h	Mon Oct 26 23:41:41 2015 +0300
@@ -76,8 +76,8 @@
     static UClassID getStaticClassID();
 
 protected:
-    le_uint32 firstGlyph;
-    le_uint32 lastGlyph;
+    le_int32 firstGlyph;
+    le_int32 lastGlyph;
 
     LEReferenceToArrayOf<IndicRearrangementStateEntry2> entryTable;
     LEReferenceTo<IndicRearrangementSubtableHeader2> indicRearrangementSubtableHeader;