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 726010 - Merge across selection is not exported in an LO-compatible way
Merge across selection is not exported in an LO-compatible way
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export OOo / OASIS
git master
Other All
: Normal normal
: ---
Assigned To: Andreas J. Guelzow
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2014-03-10 01:03 UTC by Morten Welinder
Modified: 2014-04-20 05:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Morten Welinder 2014-03-10 01:03:42 UTC
New test t6513:

-          <gnm:Style HAlign="GNM_HALIGN_CENTER_ACROSS_SELECTION" VAlign="GNM_VALIGN_BOTTOM" WrapText="0" ShrinkToFit="0" Rotation="0" Shade="1" Indent="0" Locked="1" Hidden="0" Fore="0:0:0" Back="9999:CCCC:FFFF" PatternColor="0:0:0" Format="General">
+          <gnm:Style HAlign="GNM_HALIGN_GENERAL" VAlign="GNM_VALIGN_BOTTOM" WrapText="0" ShrinkToFit="0" Rotation="0" Shade="1" Indent="0" Locked="1" Hidden="0" Fore="0:0:0" Back="9999:CCCC:FFFF" PatternColor="0:0:0" Format="General">
Comment 1 Andreas J. Guelzow 2014-03-10 18:43:24 UTC
I don't even know how this center accross selection  works. And I have the feeling it doesn't really anyways:

E3: 'Hello'
select E3:F3 and choose 'centre accross selection' 
I understand that the 'Hello now looks like it is centered on E3:F3.
select G3 and choose 'centre accross selection'
Considering that I didn't do anything that seems to affect the 'Hello' why is the 'Hello' moving?

I am quite sure that while we can save this in ODF, there is surely no native way to do that.
Comment 2 Morten Welinder 2014-03-10 19:02:59 UTC
./ssconvert ../samples/merge.gnumeric ~/mmm.xlsx
localc ~/mmm.xlsx
# save as ~/mmm.ods

This produces *something* that looks like center-across-selection.
This is probably what LO considers closest to c-a-s.
Comment 3 Andreas J. Guelzow 2014-03-10 19:27:40 UTC
LO merges the cells in questions and and centres the content:

 <table:table-cell table:style-name="ce2" office:value-type="string" calcext:value-type="string" table:number-columns-spanned="4" table:number-rows-spanned="1"><text:p>Center Across</text:p></table:table-cell>

Is that what we want to do?
Comment 4 Morten Welinder 2014-03-10 19:45:14 UTC
Excel matches the behaviour of comment 1.

Merging and centering is probably the closest we can get.  Roundtrip
will fail, but the test can be beating into submission.



From http://thenewpaperclip.com/2008/04/15/center-across-selection-the-merge-and-center-alternative-in-excel-2007/
"It’s just like merge and centre, but without all the hassles that merging cells cause."
Comment 5 Andreas J. Guelzow 2014-03-12 15:19:16 UTC
While round-trip is fixed we are not yet exporting it in a way LO can handle. We can do this in a way that round trip remains happy.
Comment 6 Andreas J. Guelzow 2014-04-20 05:49:34 UTC
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.