Page names with ampersands (&) cause rendering glitches in page dropdown

Summary:

When page titles have an ampersand (&) they don't appear correctly in the page dropdown; instead they appear to repeat the last page title that didn't have one.

Steps to reproduce:

  • Open or create a multipage document in Inkscape
  • Give some of the pages names that contain an ampersand
  • Open the pages dropdown menu

What happened?

Some page titles were replaced with previous page titles. Some of the titles also change as I mouse over the other pages in the list.

What should have happened?

The titles should have been correct.

Sample attachments:

What I see in dropdown.

image

Example of page title that had issue.

image

Mouseover behavior.

Screencast_from_2024-05-25_12-18-43

Version info

This occurs in 1.32 but I downloaded 1.4 beta to see if it had been found and fixed already.

Inkscape 1.4-beta (62f545b, 2024-04-22)

I'm using Fedora 40 with the AppImage version.