Description: When creating a new spreadsheet the file styles.xml contains references to the data style "N2" which doesn't seem to be defined anywhere. Here's the relevant xml code from styles.xml: <text:date style:data-style-name="N2" text:date-value="2018-02-09">00/00/0000</text:date>, <text:time style:data-style-name="N2" text:time-value="17:59:19.206942154"> Steps to Reproduce: 1.Create a new spreadsheet and look into styles.xml for N2 Actual Results: N2 is referenced but not defined. Expected Results: N2 should be defined somewhere in styles.xml Reproducible: Always User Profile Reset: No Additional Info: User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0
I can reproduce it in Version: 6.1.0.0.alpha0+ Build ID: 2d5ce0e1b233c83f91481cd6b9306ac8de7f5ff8 CPU threads: 4; OS: Linux 4.13; UI render: default; VCL: gtk3; Locale: ca-ES (ca_ES.UTF-8); Calc: group and LibreOffice 3.3.0 OOO330m19 (Build:6) tag libreoffice-3.3.0.4 However, the reason why it's happening is unknown to me.
@Eike, do you know why this style reference is created?
It seems to stem from the "Report" page style. <style:master-page style:name="Report" style:page-layout-name="Mpm2"> <style:header> <style:region-left> <text:p><text:sheet-name>???</text:sheet-name><text:s/>(<text:title>???</text:title>)</text:p> </style:region-left> <style:region-right> <text:p><text:date style:data-style-name="N2" text:date-value="2018-05-08">00/00/0000</text:date>, <text:time>00:00:00</text:time></text:p> </style:region-right> </style:header> <style:header-left style:display="false"/> <style:footer> <text:p>Page <text:page-number>1</text:page-number><text:s/>/ <text:page-count>99</text:page-count></text:p> </style:footer> <style:footer-left style:display="false"/> </style:master-page> It's unclear to me at the moment how the data-style ends up there (somehow via EditEngine), however, it is related to sc/source/core/data/stlpool.cxx ScStyleSheetPool::CreateStandardStyles() line 361 that does pEdEngine->QuickInsertField( SvxFieldItem(SvxDateField(Date( Date::SYSTEM ),SvxDateType::Var), EE_FEATURE_FIELD), ESelection() );
Dear kangaba, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
https://gerrit.libreoffice.org/c/core/+/104760
Tomaž Vajngerl committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/e69b57d7f55eeab6253b9fab7edce06da50121f9 tdf#115588 write autoDataStyles for master-slides It will be available in 7.1.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
I guess we can call this fixed..