Bug 142513 - Wrong zoom directing within Calc's print preview
Summary: Wrong zoom directing within Calc's print preview
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
7.1.3.2 release
Hardware: All All
: medium minor
Assignee: Jim Raykowski
URL:
Whiteboard: target:7.2.0 target:7.1.5
Keywords: bibisected, bisected, regression
: 142690 142803 142853 143141 143529 146600 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-05-26 20:50 UTC by Thorsten Wagner
Modified: 2022-01-05 23:59 UTC (History)
11 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot (16.54 KB, image/png)
2021-05-26 20:51 UTC, Thorsten Wagner
Details
Screenshot from Calc with patch (8.01 KB, image/png)
2021-06-07 18:46 UTC, Thorsten Wagner
Details
Screenshot from Writer (11.36 KB, image/png)
2021-06-07 18:46 UTC, Thorsten Wagner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thorsten Wagner 2021-05-26 20:50:48 UTC
Description:
Plus icon zooms out, minus icon zooms in. Probably only the assingment of icons is wrong. Plus icon is on the left (see screenshot), minus icon is on the right. Writer has plus icon on the right and minus icon on the left. Zoom directions are correct for Writer.

Steps to Reproduce:
1. Open Calc
2. Fill some cells with arbitrary content
3. Open print preview
4. Zoom in and zoom out

Actual Results:
Icon to zoom in triggers zoom out, icon to zoom out triggers zoom in

Expected Results:
Icons appear in swapped order and trigger the corresponding actions correctly


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.1.3.2.0+ / LibreOffice Community
Build ID: 162213c78ede269b255c1eddaaac013975a34ee2
CPU threads: 8; OS: Mac OS X 10.15.7; UI render: GL; VCL: osx
Locale: de-DE (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 Thorsten Wagner 2021-05-26 20:51:24 UTC
Created attachment 172379 [details]
Screenshot
Comment 2 Ming Hua 2021-05-27 00:30:22 UTC
Reproduced with 7.2/master daily build:
Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 18e5e948dd66e41f17b0a63bf631d98aee84a03b
CPU threads: 2; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL: win
Locale: zh-CN (zh_CN); UI: zh-CN
Calc: threaded

But not reproduced (toolbar icons work as expected) with 7.0.6:
Version: 7.0.6.2 (x64)
Build ID: 144abb84a525d8e30c9dbbefa69cbbf2d8d4ae3b
CPU threads: 2; OS: Windows 10.0 Build 19041; UI render: default; VCL: win
Locale: zh-CN (zh_CN); UI: en-US
Calc: threaded

In both cases the plus icon is always on the left, so unlikely wrong assignment of icon images.  Also I'm using elementary icon theme for 7.0.6 and Yaru (via extension) theme for 7.2, so not icon theme specific either.

Requesting for bibisection.

Note that this bug is about the two icons with magnifying glass and plus/minus as indicated in the attached screenshot in comment #1.  The widget with just plus/minus icon (no magnifying glass) and a slide scale thing to the right on the same toolbar works correctly.
Comment 3 Heiko Tietze 2021-05-27 08:18:38 UTC
Confirming, but icons and commands haven't changed. 

Jim, is this issue related to your patch in https://gerrit.libreoffice.org/c/core/+/104196?
Comment 4 Timur 2021-05-27 08:26:48 UTC
Linux 7.1:
commit 8a2dd7cb300c0ffdafd7d5f3a4b2ce9778783ed1
Date:   Fri Nov 13 19:09:27 2020 +0100
    source 95b27dd2e5b5bdcb39962f72882dcdf406bcb393
    previos d40f2d02df26e216f367b5da3f9546b73f250469

author	Jim Raykowski <raykowj@gmail.com>	2020-10-11 16:15:47 -0800
committer	Jim Raykowski <raykowj@gmail.com>	2020-11-13 17:53:20 +0100
commit 95b27dd2e5b5bdcb39962f72882dcdf406bcb393 (patch)
tree 84c49a7daadf1ce908a9f5608d40494af164917d
parent d40f2d02df26e216f367b5da3f9546b73f250469 (diff)
tdf#45705 rework zoom in and zoom out UI commands in Calc

CC Jim, please see this.
Comment 5 Jim Raykowski 2021-05-28 03:31:25 UTC
Looks like I got the zoom in/out reversed. Here is a fix for both print preview and calc canvas zooming:

https://gerrit.libreoffice.org/c/core/+/116287
Comment 6 V Stuart Foote 2021-06-07 03:50:02 UTC
*** Bug 142690 has been marked as a duplicate of this bug. ***
Comment 7 Commit Notification 2021-06-07 06:52:14 UTC
Jim Raykowski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/ec629c5ee22d02f99d66a5cf975ce239876b7f4d

Resolves tdf#142513 fix zoom caller handling

It will be available in 7.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 8 Timur 2021-06-07 09:54:25 UTC
I see it's OK, thanks for speedy fix, I guess we can close.
Comment 9 Thorsten Wagner 2021-06-07 18:45:30 UTC
Unfortunately not:

(1) Order of plus and minus icons is swapped compared with the zoom slider on the right (see screenshot from Calc attached). Writer has the plus sign on the right too (see screenshot from Writer attached).

(2) Background of zoom slider became white (on macOS at least, see screenshot from Calc attached).

Zooming itself works now as expected again. So, buttons need to be swapped (including their functionality) and background of zoom slider needs to be restored as before (see first screenshot when opening this ticket).
Comment 10 Thorsten Wagner 2021-06-07 18:46:18 UTC
Created attachment 172681 [details]
Screenshot from Calc with patch
Comment 11 Thorsten Wagner 2021-06-07 18:46:57 UTC
Created attachment 172682 [details]
Screenshot from Writer
Comment 12 Timur 2021-06-08 08:45:26 UTC
Thanks to Thorsten for additional check.

(1) Order of plus and minus icons is swapped, should be - left and + right.
Yes, although not a regression but Inherited.
If Jim would confirm fixing it here, fine, if not, another bug.

(2) Background of zoom slider became white.
Not only macOS but also Lin and Win, that's bug 136766.
Comment 13 Heiko Tietze 2021-06-09 09:22:17 UTC
Zoom In was always left of Zoom Out. Nothing to say against swapping it, will submit a patch.

The transparency issue is clearly not related to this bug.
Comment 14 Commit Notification 2021-06-09 13:37:03 UTC
Heiko Tietze committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/e0900c497a65af2e45c7cff3211b340bf14c4324

Resolves tdf#142513 - Order of ZoomIn and ZoomOut at Print Preview

It will be available in 7.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 15 Timur 2021-06-10 06:49:50 UTC
Backport to 7.1: https://gerrit.libreoffice.org/c/core/+/116702
Comment 16 Julien Nabet 2021-06-11 19:07:27 UTC
*** Bug 142803 has been marked as a duplicate of this bug. ***
Comment 17 Ming Hua 2021-06-14 14:56:46 UTC
*** Bug 142853 has been marked as a duplicate of this bug. ***
Comment 18 Commit Notification 2021-06-15 07:44:05 UTC
Jim Raykowski committed a patch related to this issue.
It has been pushed to "libreoffice-7-1":

https://git.libreoffice.org/core/commit/3d4c284f087010e9590460f98052438526e14c00

Resolves tdf#142513 fix zoom caller handling

It will be available in 7.1.5.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 19 BogdanB 2021-06-17 11:42:00 UTC
Tested in Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: c703b2d22c3f45825d9c9d790c3b5a4b6f97e776
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: ro-RO (ro_RO); UI: en-US
Calc: threaded

But of course was fixed also in 7.2
Comment 20 Timur 2021-07-01 11:33:22 UTC
*** Bug 143141 has been marked as a duplicate of this bug. ***
Comment 21 V Stuart Foote 2021-07-24 14:53:50 UTC
*** Bug 143529 has been marked as a duplicate of this bug. ***
Comment 22 Eike Rathke 2022-01-05 23:59:44 UTC
*** Bug 146600 has been marked as a duplicate of this bug. ***