Bug 135173 - CALC - Push Button - Size/Pos modified after Document Open/Save/Close for many times
Summary: CALC - Push Button - Size/Pos modified after Document Open/Save/Close for man...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.4.4.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-27 07:49 UTC by Hans-Werner
Modified: 2022-08-04 18:38 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Steps_To_Reproduce_And_Results.ods (19.00 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-07-27 07:50 UTC, Hans-Werner
Details
CALC.ods (14.98 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-07-27 07:51 UTC, Hans-Werner
Details
CALC.bas (498 bytes, text/plain)
2020-07-27 07:52 UTC, Hans-Werner
Details
LO7testResults.ods (32.40 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-08-01 17:45 UTC, Hans-Werner
Details
LO7testMacro.bas (1.09 KB, text/plain)
2020-08-01 17:46 UTC, Hans-Werner
Details
LO7testA1.ods (8.98 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-08-01 17:46 UTC, Hans-Werner
Details
LO7testA2.ods (9.24 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-08-01 17:47 UTC, Hans-Werner
Details
LO7testB1.ods (9.69 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-08-01 17:48 UTC, Hans-Werner
Details
LO7testB2.ods (9.23 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-08-01 17:48 UTC, Hans-Werner
Details
LO7testC1.ods (9.74 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-08-01 17:49 UTC, Hans-Werner
Details
LO7testC2.ods (9.27 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-08-01 17:50 UTC, Hans-Werner
Details
LO7testD1.ods (9.66 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-08-01 17:50 UTC, Hans-Werner
Details
LO7testD2.ods (9.23 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-08-01 17:51 UTC, Hans-Werner
Details
modified macro toto show the heights of push button 1 for all cycles (1.26 KB, text/plain)
2020-08-01 22:32 UTC, Gerhard Weydt
Details
Result of a run with macro LO7testMacro_mod (5.32 KB, text/plain)
2020-08-01 22:33 UTC, Gerhard Weydt
Details
Test_1_Results_LO7vsLO3.ods (20.51 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-08-02 09:02 UTC, Hans-Werner
Details
LO3testB1_test_1_file_created_by_LO7.ods (9.69 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-08-02 09:03 UTC, Hans-Werner
Details
LO3testB2_test_1_file_created_by_LO7.ods (9.90 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-08-02 09:04 UTC, Hans-Werner
Details
Test_2_Results_LO3.ods (19.41 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-08-02 09:05 UTC, Hans-Werner
Details
LO3testB1_test_2_file_created_by_LO3.ods (8.86 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-08-02 09:05 UTC, Hans-Werner
Details
LO3testB2_test_2_file_created_by_LO3.ods (8.61 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-08-02 09:06 UTC, Hans-Werner
Details
TestMacro.bas (780 bytes, application/octet-stream)
2022-08-04 18:28 UTC, Hans-Werner
Details
LO 7.4.0.2 -1- CalcOrg.ods (8.90 KB, application/vnd.oasis.opendocument.spreadsheet)
2022-08-04 18:29 UTC, Hans-Werner
Details
LO 7.4.0.2 -2- CalcMod.ods (8.90 KB, application/vnd.oasis.opendocument.spreadsheet)
2022-08-04 18:29 UTC, Hans-Werner
Details
LO 7.0.0.3 -1- CalcOrg.ods (9.69 KB, application/vnd.oasis.opendocument.spreadsheet)
2022-08-04 18:30 UTC, Hans-Werner
Details
LO 7.0.0.3 -2- CalcMod.ods (9.90 KB, application/vnd.oasis.opendocument.spreadsheet)
2022-08-04 18:31 UTC, Hans-Werner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hans-Werner 2020-07-27 07:49:38 UTC
Description:
CALC Document: Size/Position of Push Buttons is modified after Open/Save/Close of CALC Document for many times.

Steps to Reproduce:
See attached file Steps_To_Reproduce_And_Results.ods !

Actual Results:
Size/Pos of Push Buttons is modified.

Expected Results:
Size/Pos of Push Buttons should not be modified.


Reproducible: Always


User Profile Reset: No



Additional Info:
Tested using LO 6.4.5.2 (x64) @ Windows 10 Home
Comment 1 Hans-Werner 2020-07-27 07:50:58 UTC
Created attachment 163591 [details]
Steps_To_Reproduce_And_Results.ods
Comment 2 Hans-Werner 2020-07-27 07:51:43 UTC
Created attachment 163592 [details]
CALC.ods
Comment 3 Hans-Werner 2020-07-27 07:52:35 UTC
Created attachment 163593 [details]
CALC.bas
Comment 4 Hans-Werner 2020-08-01 17:44:41 UTC
Some more clearness:

[1] Software used: LO 7.0.0.3 (x64) @ Windows 10 Home (x64).

[2] The 'original files':

+ LO7testA1.ods
+ LO7testB1.ods
+ LO7testC1.ods
+ LO7testD1.ods

For all files:

+ Opened new CALC document (Untitled 1.ods).
+ Inserted 9 push buttons:
++ Test A: Cells A1 to A9
++ Test B: Cells B1 to B9
++ Test C: Cells A2 to A10
++ Test D: Cells B2 to B10
+ For every push button:
++ [Anchor] > [To cell (resize with cell)]
++ [Control Properties] > [General] > [Label] Modified: "Puh Button" to "Push Button 'numbering'"
+ For the sheet "Sheet1":
++ All rows: [Optimal Height]
++ All columns: [Optimal width]
+ Saved/closed

[3] The macro used for testing: LO7testCALC.bas

[4] The 'modified files' (copies of 'original files') processed by macro:

+ LO7testA2.ods
+ LO7testB2.ods
+ LO7testC2.ods
+ LO7testD2.ods

[5] The summary: LO7testResults.ods

Size/Pos of some push buttons is modified after 100 open/save/close cycles.
There seems to be a very small difference of 0,002 cm added on by 100 cycles to the 0,2 cm difference as to be seen.
Why happens this adding on ?

[6] All files attached.
Comment 5 Hans-Werner 2020-08-01 17:45:32 UTC
Created attachment 163849 [details]
LO7testResults.ods
Comment 6 Hans-Werner 2020-08-01 17:46:07 UTC
Created attachment 163850 [details]
LO7testMacro.bas
Comment 7 Hans-Werner 2020-08-01 17:46:40 UTC
Created attachment 163851 [details]
LO7testA1.ods
Comment 8 Hans-Werner 2020-08-01 17:47:36 UTC
Created attachment 163853 [details]
LO7testA2.ods
Comment 9 Hans-Werner 2020-08-01 17:48:17 UTC
Created attachment 163854 [details]
LO7testB1.ods
Comment 10 Hans-Werner 2020-08-01 17:48:50 UTC
Created attachment 163855 [details]
LO7testB2.ods
Comment 11 Hans-Werner 2020-08-01 17:49:22 UTC
Created attachment 163856 [details]
LO7testC1.ods
Comment 12 Hans-Werner 2020-08-01 17:50:04 UTC
Created attachment 163857 [details]
LO7testC2.ods
Comment 13 Hans-Werner 2020-08-01 17:50:43 UTC
Created attachment 163858 [details]
LO7testD1.ods
Comment 14 Hans-Werner 2020-08-01 17:51:23 UTC
Created attachment 163859 [details]
LO7testD2.ods
Comment 15 Gerhard Weydt 2020-08-01 22:32:03 UTC
Created attachment 163864 [details]
modified macro toto show the heights of push button 1 for all cycles

I can confirm the bug.
Not all four files need to be tested, the behaviour is seen already in LO7testD2, the only test I made. I modified the macro to record the height of push button 1 in every cycle. The array containing these values is shown at the end of the macro, I used Xray to present it, it's easier than programming a loop.
The result is shown in the attachment LO7TestHeights.txt, the height diminishes slowly, every 13 or 14 cycles the value is 1 lees than before. So running for 100 cycles is perhaps helpful for the optical control, but not necessary for showing the effect via program, the height is already diminished after less than ten cycles.
I also tested with a reduced file where I had deleted push buttons 2 to 9, the result for the height of push button 1 is nearly the same, some changes from one value to the next happen one step earlier or later.
Comment 16 Gerhard Weydt 2020-08-01 22:33:27 UTC
Created attachment 163865 [details]
Result of a run with macro LO7testMacro_mod
Comment 17 Hans-Werner 2020-08-02 09:02:59 UTC
Created attachment 163869 [details]
Test_1_Results_LO7vsLO3.ods
Comment 18 Hans-Werner 2020-08-02 09:03:44 UTC
Created attachment 163870 [details]
LO3testB1_test_1_file_created_by_LO7.ods
Comment 19 Hans-Werner 2020-08-02 09:04:54 UTC
Created attachment 163871 [details]
LO3testB2_test_1_file_created_by_LO7.ods
Comment 20 Hans-Werner 2020-08-02 09:05:25 UTC
Created attachment 163872 [details]
Test_2_Results_LO3.ods
Comment 21 Hans-Werner 2020-08-02 09:05:59 UTC
Created attachment 163873 [details]
LO3testB1_test_2_file_created_by_LO3.ods
Comment 22 Hans-Werner 2020-08-02 09:06:34 UTC
Created attachment 163874 [details]
LO3testB2_test_2_file_created_by_LO3.ods
Comment 23 Hans-Werner 2020-08-02 09:08:35 UTC
Some more tests using LO 3.6.7.2 (32x) @ Windows Home (x64) ...

Macro used: LO7testMacro.bas

[1] Test 1

+ Files used:
++ LO3testB1_test_1_file_created_by_LO7.ods
++ LO3testB2_test_1_file_created_by_LO7.ods (copy of file above)
+ Test results:
++ File: Test_1_Results_LO7vsLO3.ods
++ The difference is only 50% checked against LO7-Tests.
++ Push buttons affected:
+++ LO7:
++++ Pos X and Width: all
++++ Pos Y and Height: 2,4,6,8
+++ LO3:
++++ Pos X and Width: all
++++ Pos Y and Height: 3,5,6,8

[2] Test 2

+ Files used:
++ LO3testB1_test_2_file_created_by_LO3.ods
++ LO3testB2_test_2_file_created_by_LO3.ods (copy of file above)
+ Test results:
++ File: Test_2_Results_LO3.ods
++ The difference ist 0% !
Comment 24 Hans-Werner 2020-08-02 13:04:26 UTC
S U M M A R I Z E

[1] LO 7.0.0.3 (x64) @ Windows 10 Home (x64)

When a CALC document is opened/saved/closed for 15 times or more, the parameters (Pos X,Pos Y,Width,Height) of some push buttons, placed in the CALC document, are modified by LibreOffice without any additional user interaction.

See: LO7testResults.ods
See: Result of a run with macro LO7testMacro Mod (= LO7TestHeights.txt @ Comment 15)

[2] LO 3.6.7.2 (32x) @ Windows Home (x64)

No modifications to be seen.

See: Test_2_Results_LO3.ods.

[3] For testing:

Use: LO7testMacro.bas
Use: modified macro toto show the heights of push button 1 for all cycles

[4] For details see the other attched files.
Comment 25 Hans-Werner 2020-08-03 06:00:00 UTC
Sorry, ED forgotten, meant S U M M A R I Z E D ...
Comment 26 QA Administrators 2022-08-04 03:34:47 UTC Comment hidden (obsolete)
Comment 27 Hans-Werner 2022-08-04 18:28:30 UTC
Created attachment 181598 [details]
TestMacro.bas
Comment 28 Hans-Werner 2022-08-04 18:29:13 UTC
Created attachment 181599 [details]
LO 7.4.0.2 -1- CalcOrg.ods
Comment 29 Hans-Werner 2022-08-04 18:29:57 UTC
Created attachment 181600 [details]
LO 7.4.0.2 -2- CalcMod.ods
Comment 30 Hans-Werner 2022-08-04 18:30:51 UTC
Created attachment 181601 [details]
LO 7.0.0.3 -1- CalcOrg.ods
Comment 31 Hans-Werner 2022-08-04 18:31:35 UTC
Created attachment 181602 [details]
LO 7.0.0.3 -2- CalcMod.ods
Comment 32 Hans-Werner 2022-08-04 18:38:50 UTC
R E S O L V E D

TestMacro.bas

New Test - OKAY
LO 7.4.0.2 -2- CalcOrg.ods
<EQUAL>
LO 7.4.0.2 -2- CalcMod.ods

Old Test - ERROR
LO 7.0.0.3 -1- CalcOrg.ods
<NOT EQUAL>
LO 7.0.0.3 -2- CalcMod.ods