From 4bba683632b1db429343ca6cc54f803ac857ef35 Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Wed, 5 Jul 2017 12:09:16 -0400 Subject: clip save off by one Code around this bug was altered in April to fix the off by one bug, but somehow the loop counter fix was overlooked. R=dsinclair@chromium.org,npm@chromium.org Bug: 736195 Change-Id: I583a9f2389e6111ae1b847b961afaafd5e854810 Reviewed-on: https://pdfium-review.googlesource.com/7276 Reviewed-by: dsinclair Commit-Queue: Cary Clark --- core/fxge/skia/fx_skia_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/fxge/skia') diff --git a/core/fxge/skia/fx_skia_device.cpp b/core/fxge/skia/fx_skia_device.cpp index 7e0d55688c..8e9dfa6126 100644 --- a/core/fxge/skia/fx_skia_device.cpp +++ b/core/fxge/skia/fx_skia_device.cpp @@ -933,7 +933,7 @@ class SkiaState { return false; Dump(__func__); int count = m_commands.count(); - if (m_commandIndex < count - 1) { + if (m_commandIndex < count) { if (Clip::kSave == m_commands[m_commandIndex]) { ++m_commandIndex; return true; -- cgit v1.2.3