| Index: pdf/instance.cc
|
| diff --git a/pdf/instance.cc b/pdf/instance.cc
|
| index 8ec4a9e7e365c4243da41af98ee536c936c7ec83..9661c945f2e0705cc0733177523092d4b8399380 100644
|
| --- a/pdf/instance.cc
|
| +++ b/pdf/instance.cc
|
| @@ -2448,6 +2448,13 @@ void Instance::UpdatePageIndicatorPosition(bool invalidate) {
|
| }
|
|
|
| void Instance::SetZoom(ZoomMode zoom_mode, double scale) {
|
| + // If the zoom level doesn't change it means that this zoom change might have
|
| + // been initiated by the plugin. In that case, we don't want to change the
|
| + // zoom mode to ZOOM_SCALE as it may have been intentionally set to
|
| + // ZOOM_FIT_TO_PAGE or some other value when the zoom was last changed.
|
| + if (scale == zoom_)
|
| + return;
|
| +
|
| double old_zoom = zoom_;
|
|
|
| zoom_mode_ = zoom_mode;
|
|
|