mate-desktop / atril

A document viewer for MATE
http://www.mate-desktop.org
GNU General Public License v2.0
206 stars 62 forks source link

Reset Zoom sets zoom to 66%(?) instead of 100% #576

Open Dingus357 opened 1 year ago

Dingus357 commented 1 year ago

Expected behaviour

Reset Zoom sets zoom to 100%. (The tooltip for the Reset Zoom button on the toolbar says 'Reset zoom to 100%'.)

Actual behaviour

Reset Zoom does two unexpected things:

Steps to reproduce the behaviour

Failure to reset zoom to 100%:

  1. Open a PDF file and select any zoom level.
  2. Do any one of the following:
    • Press Ctrl+0,
    • Select Reset Zoom from the View menu,
    • Click the Reset Zoom button on the toolbar.
  3. Rather than being set to 100%, the zoom is set to a level claimed to be 70% (but as we will see below, it is actually less than 70%).

Unexpected creation of new zoom level:

  1. Open a PDF file and select 70% zoom from the dropdown in the toolbar.
  2. Do any one of the following:
    • Press Ctrl+0,
    • Select Reset Zoom from the View menu,
    • Click the Reset Zoom button on the toolbar.
  3. Observe that the document shrinks slightly, but the zoom dropdown still displays 70%.
  4. Zoom in once (press Ctrl++ or select Zoom In from View menu or toolbar). The document enlarges but the zoom is still shown to be 70%.
  5. Zoom out once (Ctrl+- or select Zoom Out). The document shrinks but the zoom is still shown to be 70%.

These unexpected behaviours occur for all PDF files I've tested.

MATE general version

1.26.0

Package version

atril 1.26.0-1ubuntu1 amd64

Linux Distribution

Ubuntu MATE 22.04.2 LTS (Jammy Jellyfish) 64-bit Kernel Linux 5.15.0-60-generic x86_64

Link to bugreport of your Distribution (requirement)

lukefromdc commented 1 year ago

This is likely either related to or a duplicate of https://github.com/mate-desktop/atril/issues/575