[Libreoffice-bugs] [Bug 89797] Copy & Paste from Inkscape: 1st time: Bitmap, 2nd time: vector with errors
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Mon Nov 13 22:44:57 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=89797
--- Comment #7 from himajin100000 at gmail.com ---
Just a guess:
Inkscape 0.92 puts the line graphics in some formats, including PNG and GDI
meta file. Also note that the format it gives for svg is image/x-inkscape-svg,
so Libreoffice would not understand that.
Solid line appears in any libreoffice application when we paste-special GDI
metafile.
When we create a new writer document and just paste(not paste special) from
clipboard, the format to be pasted is chosen based on the following priority.
https://opengrok.libreoffice.org/xref/core/sot/source/base/formats.cxx?r=0018fd1b#881
you see raster formats(PNG,JPG,BITMAP) coming earlier than GDI meta file in the
above source code.
when Writer pastes one of these raster data, it SELECTS(marks?) the pasted
area, and recognize that to be image. and this time, it will choose the format
in the following priority.(FYI: If we deselect, Libreoffice chooses raster
formats, and thus does not reproduce the bug when we do paste operation.)
https://opengrok.libreoffice.org/xref/core/sot/source/base/formats.cxx?r=0018fd1b#380
Here, Writer does the same thing as paste-specialing GDI metafile, thus
produces buggy result.
There are a few questions that still remain as mysteries to me.
1. Why does LibreOffice produce this buggy result when I paste-special GDI
metafile?
2. When I looked the clipboard after copying Inkscape data, there were many 0
byte entries. those entries include CF_METAFILEPICT and CF_BITMAP. Why doesn't
these data cause trouble?
3. Why is LibreOffice givig higher priority for the writer's first pasting?
Version: 6.0.0.0.alpha1+ (x64)
Build ID: a5af0fd9f27af42cf2e8571f659cdad6e606215b
CPU threads: 4; OS: Windows 10.0; UI render: default;
TinderBox: Win-x86_64 at 42, Branch:master, Time: 2017-11-07_00:30:02
Locale: en-US (ja_JP); Calc: CL
--
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/20171113/b0c7ab55/attachment.html>
More information about the Libreoffice-bugs
mailing list