Index: core/fpdfapi/render/cpdf_type3cache.cpp |
diff --git a/core/fpdfapi/render/cpdf_type3cache.cpp b/core/fpdfapi/render/cpdf_type3cache.cpp |
index ba92142dbf068f288a5bcedcf4aa4fff530cb5a4..b27fdf507e9413d44634ae955ae80613288629bb 100644 |
--- a/core/fpdfapi/render/cpdf_type3cache.cpp |
+++ b/core/fpdfapi/render/cpdf_type3cache.cpp |
@@ -143,10 +143,10 @@ CFX_GlyphBitmap* CPDF_Type3Cache::RenderGlyph(CPDF_Type3Glyphs* pSize, |
bottom_y = temp; |
} |
pSize->AdjustBlue(top_y, bottom_y, top_line, bottom_line); |
- pResBitmap.reset(pBitmap->StretchTo( |
+ pResBitmap = pBitmap->StretchTo( |
(int)(FXSYS_round(image_matrix.a) * retinaScaleX), |
(int)((bFlipped ? top_line - bottom_line : bottom_line - top_line) * |
- retinaScaleY))); |
+ retinaScaleY)); |
top = top_line; |
if (image_matrix.a < 0) { |
image_matrix.Scale(retinaScaleX, retinaScaleY); |
@@ -158,7 +158,7 @@ CFX_GlyphBitmap* CPDF_Type3Cache::RenderGlyph(CPDF_Type3Glyphs* pSize, |
} |
if (!pResBitmap) { |
image_matrix.Scale(retinaScaleX, retinaScaleY); |
- pResBitmap.reset(pBitmap->TransformTo(&image_matrix, left, top)); |
+ pResBitmap = pBitmap->TransformTo(&image_matrix, left, top); |
} |
if (!pResBitmap) |
return nullptr; |