Bug 138457 - Cursor position wrong when using functions in a table (GTK3)
Summary: Cursor position wrong when using functions in a table (GTK3)
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.0.0.alpha0+
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Caolán McNamara
URL:
Whiteboard: target:7.2.0 target:7.1.0.2 target:7.0.5
Keywords: bibisected, bisected, regression
Depends on:
Blocks: GTK3
  Show dependency treegraph
 
Reported: 2020-11-24 12:28 UTC by Senol ALDIBAS
Modified: 2020-12-24 15:50 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
sample video (595.26 KB, video/mp4)
2020-11-24 12:42 UTC, Senol ALDIBAS
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Senol ALDIBAS 2020-11-24 12:28:17 UTC
Description:
In LibreOffice Writer application, while adding a function to the table, the cursor is positioned after the function name, but it is positioned before the function name.
This situation, when not paid attention, causes the result of "sum" to be generated in all functions.

Steps to Reproduce:
1. Insert table (for example: 3x3)
2. Press "=" key
3. Press "fx" and select any function
4. Select target cells
5. Press "Enter"

Actual Results:
If the cursor position is not paid attention to :
=<A1:B1>mean
or 
=<A1:B1>min


Expected Results:
The cursor must be positioned after the function name
=mean<A1:B1>
or 
=min<A1:B1>


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
In case of carelessness it can have sad consequences.
Comment 1 Senol ALDIBAS 2020-11-24 12:42:34 UTC
Created attachment 167532 [details]
sample video
Comment 2 Dieter 2020-12-09 08:04:30 UTC
I can't confirm it with

Version: 7.1.0.0.beta1 (x64)
Build ID: 828a45a14a0b954e0e539f5a9a10ca31c81d8f53
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: threaded

Could you please try to reproduce it with a master build from http://dev-builds.libreoffice.org/daily/master/current.html ? You can install it alongside the standard version. I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the master build
Comment 3 Senol ALDIBAS 2020-12-15 08:47:44 UTC
I have tried the version you linked but the issue still exists. Whenever I try to select a function the cursor jumps back to the start position of the function name. I am not sure this is related to window manager or such but I can confirm that this is happening under both Gnome and Xfce desktop environments.
Comment 4 Dieter 2020-12-15 09:59:14 UTC
Thanks for testing. Perhaps somebody else can help. It would be useful, if you can paste informations from Help => About LibreOffice
Comment 5 Senol ALDIBAS 2020-12-15 10:55:44 UTC
Version: 7.2.0.0.alpha0+
Build ID: c17ff0b5dc20d637392562eb59bd5bfdb2694389
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3
Locale: tr-TR (tr_TR.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2020-12-13_14:43:26
Calc: threaded
Comment 6 Laura Garcia 2020-12-15 12:08:57 UTC
Thank you for reporting the bug. I can not reproduce the bug in

Version: 7.2.0.0.alpha0+
Build ID: d9ccee2231a8d8984302e1b2f578bf73b4d60c35
CPU threads: 4; OS: Mac OS X 10.15.7; UI render: default; VCL: osx
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded

Version: 7.0.3.1
Build ID: d7547858d014d4cf69878db179d326fc3483e082
CPU threads: 4; OS: Mac OS X 10.15.7; UI render: default; VCL: osx
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded

Additional comments:
Followed steps to reproduce; however, the issue reported does not seem to replicate. After following steps, cursor is placed immediately after the formula and/or the function is not placed at the end of the formula. Tested function min, mean, and sum and got the correct expected performance.
Comment 7 Gülşah Köse 2020-12-17 20:42:10 UTC
I can reproduce in LibreOfficeDev 7.2.0.0.alpha0
Comment 8 Buovjaga 2020-12-22 13:28:52 UTC
Only seen with GTK3 vclplugin.

Bibisected with linux-64-7.0 to
https://git.libreoffice.org/core/commit/2658b0e5ffdff795d910f373feb5c55ad01b7d09
weld InputEdit Item Window

Adding Cc: to Caolán McNamara
Comment 9 Commit Notification 2020-12-23 13:59:34 UTC
Caolán McNamara committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/3870ca340537294fd1168abe9592f903140d6459

tdf#138457 Cursor position wrong when using functions in a writer table

It will be available in 7.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 10 Commit Notification 2020-12-23 14:04:57 UTC
Caolán McNamara committed a patch related to this issue.
It has been pushed to "libreoffice-7-1":

https://git.libreoffice.org/core/commit/f00fbd068a3b98b4c2ab98aea01ed6a2ff1b8009

tdf#138457 Cursor position wrong when using functions in a writer table

It will be available in 7.1.0.2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 11 Caolán McNamara 2020-12-23 14:05:17 UTC
fixed in master and 7-1, backport to 7-0 in gerrit
Comment 12 Commit Notification 2020-12-23 16:40:25 UTC
Caolán McNamara committed a patch related to this issue.
It has been pushed to "libreoffice-7-0":

https://git.libreoffice.org/core/commit/cc54ea4412b2561fc4eb57e40f6eeec66cc30c16

tdf#138457 Cursor position wrong when using functions in a writer table

It will be available in 7.0.5.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 13 Buovjaga 2020-12-23 19:36:56 UTC
Verified, thanks

Arch Linux 64-bit
Version: 7.2.0.0.alpha0+
Build ID: b36a40a809206a57160108b3361f42420f619c2e
CPU threads: 8; OS: Linux 5.9; UI render: default; VCL: gtk3
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 23 December 2020
Comment 14 Senol ALDIBAS 2020-12-24 15:50:31 UTC
thanks...