Skip to content

[Bug] Delete or Duplicate buttons on left panel do not work #1103

@sebojolais

Description

@sebojolais

In the board view, the left panel shows the pages of the current document. Each page has 2 buttons to delete or duplicate it.
These 2 buttons do not work in my side.

to reproduce :

  • From the dev branch
  • Ubuntu 22.04
  • Qt 5.15.6

-> Solution and root cause:
Since this commit : 4730dc2
The thumbnail is filled by rescaled pixmaps.
So it seems that the buttons are also rescaled and the hard coded size of the icon (32) are not suitable.

The scale applied is :

1 / transform().m11()

So if we multiply the mouse coordinate by the inverse of this scale, it will work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions