Bug 158615 - Simplify storing of the "zero date" setting in Calc settings
Summary: Simplify storing of the "zero date" setting in Calc settings
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard: QA:needsComment
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-09 15:57 UTC by Gabor Kelemen (allotropia)
Modified: 2023-12-24 03:12 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2023-12-09 15:57:51 UTC
This is a followup to bug 158467

The Calc - Calculate - Date setting defines what should be considered the 0 value in date calculations. This setting is stored as a set of 3 keys[1], which is a bit overcomplicated for such a simple 3 state radio button.

It would be a somewhat simpler implementation to replace these 3 keys with a single (for example:) ZeroDate key.

Code pointers:

[1] https://opengrok.libreoffice.org/xref/core/officecfg/registry/schema/org/openoffice/Office/Calc.xcs?r=464d5f12#45 - the keys in question

https://opengrok.libreoffice.org/xref/core/sc/source/core/tool/docoptio.cxx?r=14001bc7#155 - the relevant ScDocCfg class