[Issue] OpenOffice 4.1.14: Drag & Drop fails to preserve formulas

Discuss the spreadsheet application
Locked
tom526
Posts: 5
Joined: Fri May 15, 2020 8:01 pm

[Issue] OpenOffice 4.1.14: Drag & Drop fails to preserve formulas

Post by tom526 »

Been using OpenOffice Calc for years.
And as far as I can remember, when you drag and drop to move cells, it preserves the formulas.

I just upgraded to 4.1.14 and now the formulas change. The cell coordinates change relative to how much you moved it.

Example:
Original:
1
2
=A2+A1
=A2*A1

If I move ONLY the formula cells with drag & drop:

1
2

=A3+A2
=A3*A2

It never used to do this.
Is this a bug? Or is there a setting?

To compare, this is what happens with Cut & Paste:

1
2

=A2+A1
=A2*A1

Would appreciate any assistance. This is vital component to my workflow.

 Edit: Changed subject, was Drag & Drop Cells 
Make your post understandable by others 
-- MrProgrammer, forum moderator 
Last edited by Hagar Delest on Tue Mar 14, 2023 7:11 pm, edited 2 times in total.
Reason: tagged issue.
OpenOffice 4.1.14, Windows 10 (Version 10.0.19045 Build 19045)
User avatar
MrProgrammer
Moderator
Posts: 5264
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: Drag & Drop Cells

Post by MrProgrammer »

tom526 wrote: Fri Mar 10, 2023 8:07 pm
And as far as I can remember, when you drag and drop to move cells, it preserves the formulas. I just upgraded to 4.1.14 and now the formulas change. The cell coordinates change relative to how much you moved it.
[Tutorial] Formula Adjustments during Copy and Move

You should specify your operating system and precisely what steps you take when you "drag and drop". On MacOS, I can get both behaviours, depending on how I do the operation.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.6, iMac Intel.   The locale for any menus or Calc formulas in my posts is English (USA).
tom526
Posts: 5
Joined: Fri May 15, 2020 8:01 pm

Re: Drag & Drop Cells

Post by tom526 »

I'm on Windows 10(Version 10.0.19045 Build 19045)

BTW, I downgraded to 4.1.13 and it's functioning as I expect.

Basically, I highlight the cells I want to move. Click and hold left mouse button. Move the highlighted cells to where I want them. Release left mouse button.
OpenOffice 4.1.14, Windows 10 (Version 10.0.19045 Build 19045)
User avatar
Hagar Delest
Moderator
Posts: 33357
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Drag & Drop Cells

Post by Hagar Delest »

You should add a signature to your profile: How to update your software information signature.

You can report it: [Tutorial] Reporting bugs or suggestions.
Else, you can try LibreOffice, it may not have this kind of regression (works fine with 7.4.2.3).
LibreOffice 25.2 on Linux Mint Debian Edition (LMDE Faye) and 24.8 portable on Windows 11.
User avatar
MrProgrammer
Moderator
Posts: 5264
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: Drag & Drop fails to preserve formulas in cells

Post by MrProgrammer »

tom526 wrote: Fri Mar 10, 2023 9:17 pm I'm on Windows 10(Version 10.0.19045 Build 19045)
I've updated your forum signature for you.

tom526 wrote: Fri Mar 10, 2023 9:17 pm Basically, I highlight the cells I want to move. Click and hold left mouse button. Move the highlighted cells to where I want them. Release left mouse button.
Set A1 to 5. Set A2 to 7.
Set A3 to =A1+A2. Set A4 to =A1*A2.
Set B3 to =A3. Set B4 to =A4.
Select A3 and A4. Drag to A7 and A8. Drop.

On MacOS, I find these results:
• AOO 4.1.13:
A3 and A4 are empty. The behavior is like Cut and Paste.
B3 is =A7. B4 is =A8. The behavior is like Cut and Paste.
A7 is =A1+A2. A8 is =A1*A2. The behavior is like Cut and Paste.
• AOO 4.1.14:
A3 and A4 are empty. The behavior is like Cut and Paste.
B3 is =A7. B4 is =A8. The behavior is like Cut and Paste.
A7 is =A5+A6. A8 is =A5*A6. The behavior is like Copy and Paste. Oops!

Surely the behavior in 4.1.14 is not what is intended. This seems to be a defect only in version 4.1.14. As far as I can tell, this issue has not been reported in Bugzilla. The problem seems to affect both MacOS and Windows, thus perhaps Linux too.

Workarounds:
• Use Cut and Paste instead of Drag and Drop until a fix for 4.1.14 is available
Download and install 4.1.13
AOO4.1.13.gif
AOO4.1.13.gif (33.52 KiB) Viewed 2187 times

Set A1 to 5. Set A2 to 7.
Set A3 to =A1+A2. Set A4 to =A1*A2.
Set B3 to =A3. Set B4 to =A4.
Select A3 and A4. Drag to A7 and A8.
Drop while holding the ⌥key (marked option) works as expected in 4.1.14 if the intent is to perform a copy instead of a move. The ⌥ key on a Mac is similar to the Alt key on other platforms.

On MacOS, I find these results:
• AOO 4.1.13:
A3 is =A1+A2. A4 is =A1*A2. The behavior is like Copy and Paste.
B3 is =A3. B4 is =A4. The behavior is like Copy and Paste.
A7 is =A5+A6. A8 is =A5*A6. The behavior is like Copy and Paste.
• AOO 4.1.14:
A3 is =A1+A2. A4 is =A1*A2. The behavior is like Copy and Paste.
B3 is =A3. B4 is =A4. The behavior is like Copy and Paste.
A7 is =A5+A6. A8 is =A5*A6. The behavior is like Copy and Paste.

All are as expected.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.6, iMac Intel.   The locale for any menus or Calc formulas in my posts is English (USA).
tom526
Posts: 5
Joined: Fri May 15, 2020 8:01 pm

Re: OpenOffice 4.1.14: Drag & Drop fails to preserve formulas

Post by tom526 »

Thank you!
Looks like I will have to wait for the next version and hope it’s fixed.
I’ll stay on 4.1.13 for now.
OpenOffice 4.1.14, Windows 10 (Version 10.0.19045 Build 19045)
User avatar
Villeroy
Volunteer
Posts: 31345
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: OpenOffice 4.1.14: Drag & Drop fails to preserve formulas

Post by Villeroy »

There is a much bigger upgrade availlable: https://www.libreoffice.org/discover/li ... penoffice/
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
dacha
Posts: 10
Joined: Fri Jul 15, 2011 10:18 am

Re: OpenOffice 4.1.14: Drag & Drop fails to preserve formulas

Post by dacha »

This has been reported in Bugzilla now:
https://bz.apache.org/ooo/show_bug.cgi?id=128566

I will investigate and hope to have a fix soon.
tom526
Posts: 5
Joined: Fri May 15, 2020 8:01 pm

Re: OpenOffice 4.1.14: Drag & Drop fails to preserve formulas

Post by tom526 »

dacha wrote: Tue Mar 14, 2023 6:36 pm This has been reported in Bugzilla now:
https://bz.apache.org/ooo/show_bug.cgi?id=128566

I will investigate and hope to have a fix soon.
THANK YOU!
OpenOffice 4.1.14, Windows 10 (Version 10.0.19045 Build 19045)
cwolan
Posts: 167
Joined: Sun Feb 07, 2021 3:44 pm

Re: [Issue] OpenOffice 4.1.14: Drag & Drop fails to preserve formulas

Post by cwolan »

For those interested:
A build of OpenOffice that should resolve the issue is available at the following address.
http://home.apache.org/~mseidel/AOO-bui ... tallation/

For English [US] or en-US, please download this file and check for yourself.

Don't forget the build is for testing purposes only.

 Edit:  updated link for en-US file 
Last edited by cwolan on Wed May 10, 2023 7:50 pm, edited 1 time in total.
OpenOffice 1.1.5 – 4.1.15
LibreOffice 3.3.0.4 – 25.2
Windows 7,10,11 64-bit
tom526
Posts: 5
Joined: Fri May 15, 2020 8:01 pm

Re: [Issue] OpenOffice 4.1.14: Drag & Drop fails to preserve formulas

Post by tom526 »

cwolan wrote: Tue Apr 11, 2023 6:32 pm For those interested:
A build of OpenOffice that should resolve the issue is available at the following address.
http://home.apache.org/~mseidel/AOO-bui ... tallation/

For English [US] or en-US, please download this file and check for yourself.

Don't forget the build is for testing purposes only.
Thanks! I can wait for the official release.
OpenOffice 4.1.14, Windows 10 (Version 10.0.19045 Build 19045)
Locked