Index: pdf/instance.cc |
diff --git a/pdf/instance.cc b/pdf/instance.cc |
index 6417d7870211ed9cd38ce88d957fcb374f7b0d2c..37192ba7b279f588c90fe8fdddbf04eff22cd9db 100644 |
--- a/pdf/instance.cc |
+++ b/pdf/instance.cc |
@@ -1286,6 +1286,7 @@ void Instance::NotifyNumberOfFindResultsChanged(int total, bool final_result) { |
} |
void Instance::NotifySelectedFindResultChanged(int current_find_index) { |
+ DCHECK_GE(current_find_index, 0); |
SelectedFindResultChanged(current_find_index); |
} |