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 724761 - ods roundtrip of viewport position
ods roundtrip of viewport position
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export OOo / OASIS
git master
Other All
: Normal minor
: ---
Assigned To: Andreas J. Guelzow
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2014-02-20 01:34 UTC by Morten Welinder
Modified: 2014-02-20 19:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Morten Welinder 2014-02-20 01:34:51 UTC
If I accidentally save one of the roundtrip test files with the cursor
not at A1 I get a failure.

Does the ods format handle this?


t6502-styles.pl: Check style ods roundtrip.
| Using exporter Gnumeric_XmlIO:sax
--- style-tests.xml	2014-02-19 20:32:57.000000000 -0500
+++ style-tests-new.xml	2014-02-19 20:32:57.000000000 -0500
@@ -423,7 +423,7 @@
         <gnm:Cell Row="31" Col="0" ValueType="60">Sans 24</gnm:Cell>
         <gnm:Cell Row="31" Col="1" ValueType="60">Text</gnm:Cell>
       </gnm:Cells>
-      <gnm:SheetLayout TopLeft="A11"/>
+      <gnm:SheetLayout TopLeft="A1"/>
       <gnm:Solver ModelType="0" ProblemType="0" MaxTime="60" MaxIter="1000" NonNeg="1" Discr="0" AutoScale="0" ProgramR="0"/>
     </gnm:Sheet>
   </gnm:Sheets>
Comment 1 Andreas J. Guelzow 2014-02-20 03:53:32 UTC
I don't think (but am not sure) that there is a standard way of storing the cursor position. Of course we can include it in our own settings.
Comment 2 Andreas J. Guelzow 2014-02-20 06:58:18 UTC
LO keeps the cursor position within its proprietary
<config:config-item-set config:name="ooo:view-settings">
Comment 3 Andreas J. Guelzow 2014-02-20 08:20:28 UTC
Looking at our code and trying out some examples, it looks to me like we correctly save and restore cursor position to and from ODF.
Comment 4 Andreas J. Guelzow 2014-02-20 08:24:18 UTC
Morten, I can't replicate this while saving and opening files using Gnumeric. Can you?
Comment 5 Morten Welinder 2014-02-20 13:39:19 UTC
This is strange.  I hit that a dozen times yesterday on my home machine,
but I don't see it here at work.
Comment 6 Morten Welinder 2014-02-20 16:02:12 UTC
Got it.

It's not the cursor position, but the viewport position, i.e., what cell
is the first one visible.

This hits my laptop much more because it's old and has a small screen showing
fewer rows than my work machine.
Comment 7 Andreas J. Guelzow 2014-02-20 18:46:00 UTC
We are now writing the viewport position (using LO's mechanismm). We are not reading it yet, but the writing can be tested by opening the file with LO.
Comment 8 Andreas J. Guelzow 2014-02-20 19:45:02 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.