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 680548 - Ctrl-Shift-Enter versus implicit-")"
Ctrl-Shift-Enter versus implicit-")"
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: GUI
git master
Other All
: Normal normal
: ---
Assigned To: Andreas J. Guelzow
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2012-07-24 18:55 UTC by Morten Welinder
Modified: 2012-07-25 15:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
suggested patch (455 bytes, patch)
2012-07-24 19:43 UTC, Andreas J. Guelzow
none Details | Review

Description Morten Welinder 2012-07-24 18:55:42 UTC
1. Select A1:A2

2a. Type =sum(2
--or--
2b. Type =sum(2)

3. Ctrl-Shift-Enter

Both should produce an array formula, but only 2b does.
Comment 1 Andreas J. Guelzow 2012-07-24 19:43:22 UTC
Created attachment 219600 [details] [review]
suggested patch

suggested patch to fix the issue at hand.
Comment 2 Morten Welinder 2012-07-25 01:45:09 UTC
Hmm...  That wasn't what I pictured in my mind would be the fix.
Comment 3 Andreas J. Guelzow 2012-07-25 04:19:51 UTC
The point is that on lines 310 to 325 we are parsing expr_txt again to see whether we can parse it in an array context.

If a ')' was missing we changed txt but did not adjust expr_txt as a consequence we would enter an array formula.
Comment 4 Andreas J. Guelzow 2012-07-25 15:11:36 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.