Index: core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp |
diff --git a/core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp b/core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp |
index afcaa8dd19ec42088e6e4556266ec1fa4cd72e0f..63c67cc01360b12729e0e55b8c7e6624d552d908 100644 |
--- a/core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp |
+++ b/core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp |
@@ -1149,8 +1149,8 @@ void CPDF_RenderStatus::DrawTilingPattern(CPDF_TilingPattern* pPattern, |
if (!safeStartX.IsValid() || !safeStartY.IsValid()) |
return; |
- start_x = safeStartX.ValueOrDefault(0); |
- start_y = safeStartY.ValueOrDefault(0); |
+ start_x = safeStartX.ValueOrDie(); |
+ start_y = safeStartY.ValueOrDie(); |
} |
if (width == 1 && height == 1) { |
if (start_x < 0 || start_x >= clip_box.Width() || start_y < 0 || |