Created attachment 62967
Updated patch.

The reason document statistics is broken comes down to the following
commit:
http://cgit.freedesktop.org/libreoffice/core/commit/?id=6af264883910fe31433b4164b1956f4f9ed75ecb

It disables redlining deleted changes (by removing the flag
REDLINE_SHOW_DELETE) when exporting (saving) documents, which leads to
SwTxtNode::CountWords counting the deleted changes instead of masking
them (since it only masks redlined content).

It appears that was done as a bug fix. Unfortunately, it was fixing a
bug from 2001, and information on such bugs are not available anymore.
The attached patch leaves the broken document statistics behavior as is,
and I'll file a separate bug to track it.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/981033

Title:
  [Upstream] Words and Character excluding spaces Word Count incorrect
  with Record Changes enabled

To manage notifications about this bug go to:
https://bugs.launchpad.net/df-libreoffice/+bug/981033/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to