[Libreoffice-bugs] [Bug 129933] Hex color code truncated, when Pasting into field of the "Pick a Color" dialog

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Jan 10 23:11:17 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=129933

--- Comment #8 from John M. Adams <john at villalagoontile.com> ---
(In reply to Ming Hua from comment #7)
> As long as the value is selected before pasting, the error dialog pops up
> for me every time.


Correct.  Sorry, I meant to add this... I found with my testing that it appears
to be more a "paste as replacement" error, versus general pasting.

It's reacting as if it's following this set of steps to replace the selected
value:

1) Concatenate Original Value and Pasting Value
2) Test Combined Value for Validity
3) Set the Field Value as the Substring of Combined Value, removing the
Original Value

If you have 2 characters "ff" (LO picker interprets as rgb(255,0,0))...
Select it, and paste the same "ff", and it succeeds (LO picker would see "ffff"
as valid).

If you delete the contents and paste "ffffff", it succeeds... but concatenation
of "" and "ffffff" is valid.

If you have "ff", and paste "ffffff", it fails ("ffffffff" is invalid).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200110/22da47f6/attachment.htm>


More information about the Libreoffice-bugs mailing list