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 668691 - Abs/rel mode (F4) is sticky
Abs/rel mode (F4) is sticky
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: GUI
git master
Other All
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2012-01-25 20:19 UTC by Morten Welinder
Modified: 2012-01-27 22:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Morten Welinder 2012-01-25 20:19:01 UTC
A1: = [right] [enter]
(you get =b1)

A2: =h4 [F4] [enter]
(you get =$h$4)

A3: = [right] [enter]
(you get =$b$3)

This should not be sticky.  That last one should yield =b3.
Comment 1 Andreas J. Guelzow 2012-01-26 03:08:35 UTC
Hmm, if this were not sticky how would you switch to absolute mode?
Comment 2 Morten Welinder 2012-01-26 13:50:48 UTC
I don't want it to be a "mode".  I want it to change the current reference
when F4 is pressed and nothing else.
Comment 3 Morten Welinder 2012-01-26 16:03:04 UTC
XL seems to do the same thing I argued for.  It's certainly the only
thing that fits my usage pattern.

Specifically I use F4 while entering a formula because a single cell
needs to be fully or partially absolute.  It is definitely on a per-cell
or even per-reference basis.
Comment 4 Andreas J. Guelzow 2012-01-27 03:18:52 UTC
This problem has nothing to do with F4.
Try the following:

A1:  = [right] [enter]
(you get =b1)

A2: =$h$4 [enter]
(you get =$h$4)

A3: = [right] [enter]
(you get =$b$3)

We seem to not resetting the gnumeric-expr-entry correctly when we move to a new cell.
Comment 5 Andreas J. Guelzow 2012-01-27 17:35:02 UTC
If you track the state of rs->ref.a.col_relative with rs = &gee->rangesel in gnm_expr_entry_load_from_range you see that it is set to false when we

A3: = [right] [enter]
(you get =$b$3)

but I don't see why...
Comment 6 Morten Welinder 2012-01-27 22:00:21 UTC
col_relative changes precisely when you finish entering a ref, i.e., when
you type the "4" in "=$h$4" or "=h4".

It doesn't reset on, say, adding a "+" afterwards.
Comment 7 Morten Welinder 2012-01-27 22:07:26 UTC
Fix in hand.
Comment 8 Morten Welinder 2012-01-27 22:11:05 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.