[Libreoffice-bugs] [Bug 145367] Writer table functions: MIN(SUM(), 333) is damaged on edit

2023-01-20 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=145367

Buovjaga  changed:

   What|Removed |Added

 Blocks||122755
 CC||ilmari.lauhakangas@libreoff
   ||ice.org
 Ever confirmed|0   |1
Version|7.2.1.2 release |7.1.0.0.alpha0+
 Status|UNCONFIRMED |NEW

--- Comment #12 from Buovjaga  ---
The field value remained stable as 333 before version 5.4 and
https://git.libreoffice.org/core/commit/c568eb7d3bb4584867f0a1f0a7965f73097f009b
tdf#105975 Add Formula field parsing (docx) in SWriter
With that change, the field started to automatically change to ** Expression is
faulty **

In 7.1, it started to automatically change to 933 with Michael Warner's
https://git.libreoffice.org/core/commit/68e74bdf63e992666016c790e8e4cfd5b28d6abe
tdf133647 tdf123386 tdf123389 Improved .docx table formula import

The changing became non-automatic with Miklós Vajna's
https://git.libreoffice.org/core/commit/1abf4e6d07ca0ac31bc54f812df84efc82d2af1b
DOCX import: don't throw away cached value of SwHiddenTextField ...


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=122755
[Bug 122755] [META] Formulae in Writer tables bugs and enhancements
-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 145367] Writer table functions: MIN(SUM(), 333) is damaged on edit

2022-07-02 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=145367

--- Comment #11 from Leslie  ---
Created attachment 181078
  --> https://bugs.documentfoundation.org/attachment.cgi?id=181078=edit
Complex Calc

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 145367] Writer table functions: MIN(SUM(), 333) is damaged on edit

2022-07-02 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=145367

--- Comment #10 from Leslie  ---
Created attachment 181077
  --> https://bugs.documentfoundation.org/attachment.cgi?id=181077=edit
Complex Excel

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 145367] Writer table functions: MIN(SUM(), 333) is damaged on edit

2022-07-02 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=145367

--- Comment #9 from Leslie  ---
Created attachment 181076
  --> https://bugs.documentfoundation.org/attachment.cgi?id=181076=edit
Complex Formula Office

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 145367] Writer table functions: MIN(SUM(), 333) is damaged on edit

2022-07-02 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=145367

--- Comment #8 from Leslie  ---
Created attachment 181075
  --> https://bugs.documentfoundation.org/attachment.cgi?id=181075=edit
Stat Calcu

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 145367] Writer table functions: MIN(SUM(), 333) is damaged on edit

2022-07-02 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=145367

--- Comment #7 from Leslie  ---
Created attachment 181074
  --> https://bugs.documentfoundation.org/attachment.cgi?id=181074=edit
Basic Calcu

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 145367] Writer table functions: MIN(SUM(), 333) is damaged on edit

2022-07-02 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=145367

--- Comment #6 from Leslie  ---
Able to replicate the issue on the latest version

Version: 7.3.4.2 (x64) / LibreOffice Community
Build ID: 728fec16bd5f605073805c3c9e7c4212a0120dc5
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-GB
Calc: CL

1. Create an RTF document in Microsoft Word with the field formula of
MIN(SUM(),333)
2. Load that RTF into LibreOffice Writer > Result of the formula is ‘333’
3. Follow a or b flow.
   a. (Left or Right) Click Last Column (Result) of the table > Will be updated
to ‘933’
   b.Copy the table to a new document
  i. Ctr + a = Select all
 ii. Ctr + c = Copy
iii. Ctr + n = New Document
 iv. Ctr + v = Paste
  v. Value will be ‘933’ instead of ‘333’
 •Issues:   
a. Recalculation happens thus formula result is updated without
updating the actual field (formula)
b. Providing alternative result
4. “Right-click on the field formula and select "Edit fields" and the value
becomes incorrect and the formula has changed to MIN(SUM()|333) which is
invalid syntax.”
   .Confirmed on the 7.3 documentation and as inherited from previous
documentation this is the actual or correct conversion of the formula for the
Writer where “|” was used as a line separator.
Source:
https://help.libreoffice.org/7.3/he/text/swriter/02/1402.html?DbPAR=WRITER#bm_id3149687

Able to replicate the issue on the version reported

Version: 7.2.1.2 (x64) / LibreOffice Community
Build ID: 87b77fad49947c1441b67c559c339af8f3517e22
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-GB
Calc: CL

Able to replicate still in the prerelease version using the above steps

Version: 7.4.0.0.beta1 (x64) / LibreOffice Community
Build ID: cec1fe9b57a55c032f9f118c907f34e22a63d040
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-GB
Calc: CL

Check-in Similar Product:
1. Tried to Open the document in MS Word using Steps 1 to 3 (above),
recalculation is not happening upon clicking on the result field or copying and
pasting to a new document. 
   a.Following Step 4, only then you can edit the formula. 
Microsoft® Word for Microsoft 365 MSO (Version 2205 Build 16.0.15225.20278)
64-bit 

2. Tried in Google Docs, recalculation is not happening upon clicking on the
result field, as the table formula is not supported by the application.
https://support.google.com/docs/thread/11444767/sum-table-cells-in-docs?hl=en
Version 102.0.5005.115 (Official Build) (64-bit)

Additional Notes:
• I tried using a different set of Basic Calculation Functions (Basic Calcu)
i.e., Addition, Subtraction, Multiplication, and division, and found no issue
upon loading of the file. 
• I tried using Statistical Functions (Stat Calcu) i.e., MIN, MAX, COUNT, and
found no issue upon loading the file as well. 
• However, using a complex formula (Complex Formula Office) the error is
encountered. 
a.  Office Formula / Writer Formula
I.  =MAX(SUM(A1:A3),333) / MAX(SUM()|333)
II. =MIN(SUM(A1:A3),333) / MIN(SUM()|333)
III.=MIN((A1:A3),333) / MIN(|333)
IV. =MAX((A1:A3),333) / MAX(|333)
Note that iii and iv Office Formula is showing a !Syntax Error results in Word,
yet following Steps 1 to 3 in Writer, it will recalculate and display results.

• I tried to check the formula in both (Complex Excel) and (Complex Calc) and
they are returning the same results for the same sets of data and formula. 
• (Location) of the table does not matter in the file, be it the only content, 
at the middle, or at the bottom. The issue will still be encountered. 

Conclusion: 
• Issue 1: Recalculation happens thus formula result is updated without
updating the actual field (formula)
 • Fixing the problem ought to be able to deal with the problem in consumer
expectations and experience. To maintain the document's integrity, no data or
information should be changed without the user's actual involvement.
 • Additionally, I believe that updates on the results for the table's
formula should only take place when the user activates the Edit field or Update
Formula so that they are aware of the changes.

•Issue 2 Updated value is incorrect
 • This is a separate issue and thus needs a separate bug report and a
detailed assessment of the actual computation and combination of the formulas. 
 • Per initial assessment, the recalculation happens when the formula is
extracting different results from the initial value. 
 • The recalculation seems to leave out the MIN/MAX part in the formula and
focuses on the SUM()|333) given that the updated results are correct if
we are to omit the MIN/MAX part (based on  both (Complex Excel) and (Complex
Calc) 
 • Below formula is able to produce a correct result even with MIN/MAX
given a re-arrange value in Writer
•   MIN((++)|333)
•  

[Libreoffice-bugs] [Bug 145367] Writer table functions: MIN(SUM(), 333) is damaged on edit

2021-10-30 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=145367

Roman Kuznetsov <79045_79...@mail.ru> changed:

   What|Removed |Added

Summary|MIN(SUM(),333) is|Writer table functions:
   |damaged on edit |MIN(SUM(),333) is
   ||damaged on edit
 CC||79045_79...@mail.ru

-- 
You are receiving this mail because:
You are the assignee for the bug.