Commit 02e48bf
committed
Fix #26402: Formatting lost when special character is copied and pasted
Copying and pasting a musical symbol with a modified size in a system
text object caused the size to reset. This happened because the cursor
used during insertion was from the paste location rather than the copied
element. Additionally, the format was not properly stored in the edit
text object (ed), so when TextBase::insertSym() was called, it
lacked the correct formatting.
I fixed this by ensuring the correct cursor was used for insertion
and explicitly setting the format in the edit text object before
passing it to TextBase::insertSym() during TextBase::paste(),
preserving the symbol’s modified size.1 parent 9d0803d commit 02e48bf
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| |||
940 | 940 | | |
941 | 941 | | |
942 | 942 | | |
| 943 | + | |
943 | 944 | | |
944 | 945 | | |
945 | 946 | | |
| |||
0 commit comments