Skip to content

Measurements: "Copy to clipboard" data truncated due to NUL byte in field #573

@skalteis

Description

@skalteis

Bug report

Describe the bug
"Copy to Clipboard" for detection results fails due to NUL-Byte in text

To Reproduce
Steps to reproduce the behavior:

  1. Create some annotation
  2. Run cell detection
  3. Open "Show detection measurements"
  4. Select one or multiple measurements
  5. Click on "Copy to Clipboard"
  6. Paste into text editor
  7. Result: Headers are copied, data terminates after the content of the "Image" field for the first entry

In contrast: Export to file via "Save" works and shows that a NUL-byte is present in the "Image" fields - which probably interferes with the clipboard functionality

Expected behavior
Content in the clipboard should be identical to the one that can be obtained by saving to text via "Save"

Screenshots
Copy-paste result:
copy-paste

Save to file result, showing NUL bytes in the Image field:
save-to-file

Desktop (please complete the following information):

  • OS: Windows 10
  • QuPath Version 0.2.1

Thank you & best regards,
Simon

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions