Chromium Code Reviews| Index: experimental/PdfViewer/SkPdfFont.h |
| =================================================================== |
| --- experimental/PdfViewer/SkPdfFont.h (revision 10854) |
| +++ experimental/PdfViewer/SkPdfFont.h (working copy) |
| @@ -211,7 +211,7 @@ |
| }; |
| inline unsigned int ToUnicode(unsigned int ch) const { |
| - if (fToUnicode) { |
| + if (fToUnicode && fToUnicode->fCMapEncoding) { |
| return fToUnicode->fCMapEncoding[ch]; |
| } else { |
| return ch; |