diff options
author | dsinclair <dsinclair@chromium.org> | 2016-09-08 10:15:56 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-08 10:15:56 -0700 |
commit | d827111fb10c7d8b89bc954ab0934b4009d6643c (patch) | |
tree | dd3f7699334911f32600573ceacd93e1212be05a | |
parent | 5c48effa667fbfc7a3ff7f03e73887347975bec5 (diff) | |
download | pdfium-d827111fb10c7d8b89bc954ab0934b4009d6643c.tar.xz |
Switch to ValueOrDie
We know the values are always valid at this point, so use ValueOrDie instead
of ValueOrDefault.
BUG=chromium:637984
Review-Url: https://codereview.chromium.org/2319343003
-rw-r--r-- | core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp b/core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp index afcaa8dd19..63c67cc013 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 || |