After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 681049 - Layering changes between first and second copy of an ODF file
Layering changes between first and second copy of an ODF file
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export OOo / OASIS
git master
Other Linux
: Normal normal
: ---
Assigned To: Andreas J. Guelzow
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2012-08-02 09:14 UTC by Andreas J. Guelzow
Modified: 2012-08-02 19:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sample file (5.26 KB, application/vnd.oasis.opendocument.spreadsheet)
2012-08-02 09:14 UTC, Andreas J. Guelzow
  Details
test patch (1.31 KB, patch)
2012-08-02 17:37 UTC, Andreas J. Guelzow
none Details | Review
sample file with text in the ellipses (5.28 KB, application/vnd.oasis.opendocument.spreadsheet)
2012-08-02 17:39 UTC, Andreas J. Guelzow
  Details

Description Andreas J. Guelzow 2012-08-02 09:14:23 UTC
Created attachment 220126 [details]
sample file

new gnumeric
open the attached file twice.

Note that the order of the sheet objects has changed.
Comment 1 Andreas J. Guelzow 2012-08-02 17:37:56 UTC
Created attachment 220165 [details] [review]
test patch

We are adjusting the order of the objects by reordering sheet->sheet_objects. Perhaps we need to go through the regular API so I rewrote it adding some debugging output that assumes a different test file. This patch assumes the next test file.
Comment 2 Andreas J. Guelzow 2012-08-02 17:39:29 UTC
Created attachment 220166 [details]
sample file with text in the ellipses

With the above patch and this sample file we see that in teh openoffice importer everything seems to happen as expected....

But the layering is still switched.
Comment 3 Andreas J. Guelzow 2012-08-02 17:47:45 UTC
If you create a second view of the second file, the order in that view is correct!
Comment 4 Andreas J. Guelzow 2012-08-02 19:13:36 UTC
Thanks to Jean for figuring out that htis is due to the fact that "the SheetObjectView is not created immediately, we use g_idle_add".

This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.