mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-06 13:07:36 +00:00
Merge pull request #575 from glacjay/patch-1
fix an "out of range" error
This commit is contained in:
@@ -7,7 +7,7 @@ import java.util.ArrayList;
|
||||
|
||||
class GlyphPathBag {
|
||||
private final ArrayList<Path> paths = new ArrayList<>();
|
||||
private final int[][] data = new int[255][];
|
||||
private final int[][] data = new int[256][];
|
||||
private final Paint paint;
|
||||
|
||||
GlyphPathBag(Paint paint) {
|
||||
@@ -28,7 +28,7 @@ class GlyphPathBag {
|
||||
|
||||
int[] bin = data[ch >> 8];
|
||||
if (bin == null) {
|
||||
bin = data[ch >> 8] = new int[255];
|
||||
bin = data[ch >> 8] = new int[256];
|
||||
}
|
||||
bin[ch & 0xFF] = paths.size();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user