Bug 168948 - Clone format from comment to comment reverts font size
Summary: Clone format from comment to comment reverts font size
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
26.2.0.0 alpha0+ master
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Calc-Comments Calc-Styles
  Show dependency treegraph
 
Reported: 2025-10-18 20:42 UTC by Eyal Rozenberg
Modified: 2025-11-10 08: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 Eyal Rozenberg 2025-10-18 20:42:58 UTC
Reproduction instructions:

1.  Insert a comment on some cell, with text "foo"
2.  Insert a comment on another cell, with text "bar"
3.  On the menus, toggle View > Comments 
4.  Enter the "foo" comment (e.g. by double-clicking its text) and select all text
5.  Reduce font size (e.g. from 10pt to 7pt)
6.  Enter the "bar" comment (e.g. by double-clicking its text) and select all text
7.  Reduce font size (e.g. from 10pt to 7pt)
10. Select the "foo" comment
11. Press "Clone Formatting"
12. Select the "bar" comment

Expected result:
No change to the format of the "bar" comment or its text.

Actual result:
Font size in the "bar" comment reverts to original (e.g. 10 instead of 7)


Q: "But why is this a bug? Haven't we just applied some default font size of comment boxes, to the "bar" comment?

A: If there is such an implicit CS in boxes, then it should be editable - both as a named format generally, as DF via Format > Character... when selecting a comment, and in the Properties sidebar deck; but none of these are enabled for comment boxes (the Properties deck is enabled, but doesn't have anything regarding font size, typeface etc.)
Comment 1 BogdanB 2025-10-25 17:49:01 UTC
In 25.8.2 Clone formatting is disabled for comments content.
Comment 2 BogdanB 2025-10-25 17:50:27 UTC
Clone formatting is disabled for comments content also in
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: c02bef3a272f6d93669c4e0b51606dcdf56fe425
CPU threads: 16; OS: Linux 6.14; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

Maybe is a gtk3 only problem, or a Linux only bug for me.
Comment 3 tkakar 2025-11-10 00:23:04 UTC
I was unable to reproduce this bug on Windows. This, combined with other comments suggests it may be a Linux specific issue. 

I followed the steps:
1. Create 2 comments ("foo" and "bar").
2. Set the font size in both to 7pt.
3. Selected the "foo" comment, clicked "Clone Formatting," and applied it to the "bar" comment.

Result: The "bar" comment's text correctly remained at 7pt. It did not revert to 10pt as described in the bug report. 

Tested in both:

Version: 25.8.2.2 (X86_64)
Build ID: d401f2107ccab8f924a8e2df40f573aab7605b6f
CPU threads: 16; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 620(Build:0)
CPU threads: 16; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 4 Eyal Rozenberg 2025-11-10 08:12:39 UTC
(In reply to BogdanB from comment #1)
> In 25.8.2 Clone formatting is disabled for comments content.

But not for comments overall.

(In reply to tkakar from comment #3)
> I was unable to reproduce this bug on Windows.

With a recent nightly, and with 25.8, I'm not able to reproduce. So, resolving as WORKSFORME. Too bad I didn't post the specific nightly I was using.