Index: pdf/instance.cc |
diff --git a/pdf/instance.cc b/pdf/instance.cc |
index bb13fcc210eba34fdd4a03dde8fe5c9ff6b73ad0..ba7fca3b17aa7ad40f1b30b00b5d4cf15d8bf958 100644 |
--- a/pdf/instance.cc |
+++ b/pdf/instance.cc |
@@ -2426,6 +2426,10 @@ void Instance::UpdatePageIndicatorPosition(bool invalidate) { |
} |
void Instance::SetZoom(ZoomMode zoom_mode, double scale) { |
+ // If same zoom level, don't do anything. |
wjmaclean
2014/10/08 14:14:33
You might modify this comment to indicate that, in
raymes
2014/10/08 17:23:55
// If the zoom level doesn't change it means that
Nikhil
2014/10/09 06:36:19
Done.
|
+ if (scale == zoom_) |
+ return; |
+ |
double old_zoom = zoom_; |
zoom_mode_ = zoom_mode; |