Description: (Non-present) Direct formatting applied when replacing text in textbox by pasted content Steps to Reproduce: 1. Open the attached file 2. Select the text Lorem until Semper (part is also fine) 3. Enter the Textbox 4. Press CTRL+A 5. CTRL+V 6. For older versions -> Exit textbox Actual Results: Direct formatting applied Expected Results: Shouldn't be the case Reproducible: Always User Profile Reset: No Additional Info: Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community Build ID: d5e55d204b71710eb5eb5d2c683dd6698626df3c CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win Locale: nl-NL (nl_NL); UI: en-US Calc: CL
Created attachment 175127 [details] Example file
There is no Direct Formatting as fallback or the wrong DF is applied (not sure which one it is)
Assuming that there is a step for "CTRL-C" between steps 2 and 3, I can confirm that some formatting is applied. It changes the font but does not show what it is; it shows only as an empty box in the font menu. Repro on Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community Build ID: a9cc066a86c6bd3423c5802c5a4eded55a50c754 CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win Locale: fi-FI (fi_FI); UI: en-US Calc: CL
As a clarification for my previous comment: replace "formatting" by "direct formatting".
Ctrl+A not needed, Bold also with simple paste. Easy to remove with Ctrl+M. Seems like cause is explained in bug 111921.
Dear Telesto, 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 https://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://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
In OOo 3.3, would apply Times New Roman to pasted text instead of keeping the Default Paragraph Style's Liberation Serif. In recent trunk build, still uses a different font, without anything showing in font combobox. In original contents.xml: <style:style style:name="P1" style:family="paragraph"> <loext:graphic-properties draw:fill="none" draw:fill-color="#ffffff"/> </style:style> [...] <text:p text:style-name="Standard"> <draw:frame text:anchor-type="paragraph" draw:z-index="0" draw:name="Shape1" draw:style-name="gr1" draw:text-style-name="P1" svg:width="6.88cm" svg:height="4.915cm" svg:x="5.523cm" svg:y="2.171cm"> <draw:text-box> <text:p>Hello Hello Hello World Hello </text:p> </draw:text-box> </draw:frame> </text:p> After pasting and saving, the object's style P1 becomes P2, and the newly created styles P1 (for the paragraph) and F1 (for the span) use style:font-name="F": <style:style style:name="P1" style:family="paragraph"> <style:text-properties style:font-name="F" fo:font-size="12pt"/> </style:style> <style:style style:name="P2" style:family="paragraph"> <loext:graphic-properties draw:fill="none" draw:fill-color="#ffffff"/> </style:style> [...] <style:style style:name="T1" style:family="text"> <style:text-properties style:font-name="F" fo:font-size="12pt"/> </style:style> [...] <text:p text:style-name="Standard"> <draw:frame text:anchor-type="paragraph" draw:z-index="0" draw:name="Shape1" draw:style-name="gr1" draw:text-style-name="P2" svg:width="6.88cm" svg:height="4.915cm" svg:x="5.523cm" svg:y="2.171cm"> <draw:text-box> <text:p text:style-name="P1"> <text:span text:style-name="T1">Lorem ipsum</text:span> </text:p> </draw:text-box> </draw:frame> </text:p>
(In reply to Stéphane Guillou (stragu) from comment #7) > the newly > created styles P1 (for the paragraph) and F1 (for the span) use > style:font-name="F" ...defined as: <style:font-face style:name="F" svg:font-family="" style:font-family-generic="roman"/> (already in the original file)