qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.62k stars 3.01k forks source link

Fixed table disappears when undoing action #38526

Open MMR100 opened 4 years ago

MMR100 commented 4 years ago

Bug description: I created a fixed table in a layout. If I move it or cut it, and then use ctrl+z to undo my action, the table disappears and becomes a "frame" instead of a "Table frame"

A sample project is attached. If you go to layout manager and select "test" , there will be two tables. If you move any of them then undo your action, the table disappears. bug fixed table.zip

It has been tested with a clean new profile using QGIS 3.14.15

It doesn't seem to come from the contents in the table nor from the auto / fixed size of the columns. I cannot reproduce the bug but there is a crash if I change the font so maybe the issue comes from there?

freeshrugsxd commented 3 years ago

Describe the bug

Undo action breaks Fixed Tables when they are loaded from a layout template.

How to Reproduce

  1. create and open layout
  2. add Fixed Table
  3. save layout as template
  4. create new layout from the saved template
  5. move the table frame
  6. undo (Ctrl+Z) last action

The table will be gone and cannot be recovered unless you revert the project.

QGIS and OS versions

QGIS version 3.20.1-Odense
QGIS code revision 1c3c5cd6
Qt version 5.15.2
Python version 3.9.5
GDAL/OGR version 3.3.1
PROJ version 8.1.0
EPSG Registry database version v10.018 (2021-04-02)
GEOS version 3.9.1-CAPI-1.14.2
SQLite version 3.35.2
PDAL version 2.3.0
PostgreSQL client version 13.0
SpatiaLite version 5.0.1
QWT version 6.1.3
QScintilla2 version 2.11.5
OS version Windows 10 Version 2009
Active Python plugins db_manager, MetaSearch, processing

Additional context

The name of the Fixed Table item will change from <Table frame> to <Frame> in the layout's Items Panel.

antoniolocandro commented 1 year ago

Experienced this with latest dev version, I however noticed that if I saved the project and reopen the table content appeared. Maybe I was lucky but in any case this behaviour is quite scary and can loose a lot of work done in customization