Apache OpenOffice (AOO) Bugzilla – Issue 124639
'Paste as GDI Metafile' from WIN Paintbrush pastes nothing (without error message)
Last modified: 2017-05-20 10:35:39 UTC
4.1 RC2 Windows en-US. I tried to paste copy a selected area from Windows Paint and paste to Impress or Writer, using menu Edit->Paste, or CTRL+V, but not work. I select Edit->Paste Special, and in the dialog, "Bitmap" option works, but "PaintBrush Picture" (the default option) can not work. It worked in 4.1 beta that I installed.
Copy from KSnapshot to Writer OK AOO410m14(Build:9760) - Rev. 1585624 2014-04-08_04:11:10 - Rev. 1585644 Debian
No problem also with RC2 Rev. 1585426 -> Win only?
@Edwin: the copy source must be from "Windows Paint" application to reproduce this issue.
Additional info: ---------------- (a) clipboard contents is recognized as Paintbrush (otherwise this option would not be offered in 'Paste Special', Paintbrush and Bitmap work, but not as GDI Metafile. (b) because GDI Metafile is default nothing will be pasted (c) different problem (may be related) "no Paste Special offered at all" Reproducible with * server installation of "AOO 4.1.0-Beta – German UI / German locale- [AOO410m14(Build:9760) - Rev. 1573601 2014-03-03 17:47:48]" on German WIN7 Home Premium (64bit)", own separate user profile. * server installation of "AOO 4.1.0-Beta – Spanish UI / German locale- [AOO410m14(Build:9760) - Rev. 1573601 2014-03-03 17:47:48]" on German WIN7 Home Premium (64bit)", own separate user profile. * server installation of "AOO 4.1.0-Dev – English UI / German locale - [AOO410m1(Build:9750) - Rev. 1558977 - 2014-01-18]" on German WIN7 Home Premium (64bit)", own separate user profile. (d) Already Reproducible with server installation of "AOO 4.1.0-dev – English UI / German locale - [AOO410m14(Build:9760) - Rev. 1582709 2014-03-30]" on German WIN7 Home Premium (64bit)", own separate user profile. (e) Was still ok with server installation of "AOO 4.1.0-Beta – English UI / German locale - [AOO410m14(Build:9760) - Rev. 1572868 2014-02-25 11:43:28]" on German WIN7 Home Premium (64bit)", own separate user profile. (f) Seems not to be a general "paste as GDI Metafile" problem, that works fine for Draw contents. (g) If no side-effects are known I do not rate this one as a showstopper.
taking to work on a solution together with Armin.
(In reply to Rainer Bielefeld from comment #4) > (f) Seems not to be a general "paste as GDI Metafile" problem, that works > fine for Draw contents. It doesn't work for Draw. Only Bitmap does. RC2 Rev. 1585426
(In reply to Rainer Bielefeld from comment #4) > Additional info: > ---------------- > (a) clipboard contents is recognized as Paintbrush (otherwise this option > would > not be offered in 'Paste Special', Paintbrush and > Bitmap work, but not as GDI Metafile. > (b) because GDI Metafile is default nothing will be pasted > (c) different problem (may be related) "no Paste Special offered at all" > Reproducible with > * server installation of "AOO 4.1.0-Beta – German UI / German locale- > [AOO410m14(Build:9760) - Rev. 1573601 2014-03-03 17:47:48]" > on German WIN7 Home Premium (64bit)", own separate user profile. > * server installation of "AOO 4.1.0-Beta – Spanish UI / German locale- > [AOO410m14(Build:9760) - Rev. 1573601 2014-03-03 17:47:48]" on > German WIN7 Home Premium (64bit)", own separate user profile. > * server installation of "AOO 4.1.0-Dev – English UI / German locale - > [AOO410m1(Build:9750) - Rev. 1558977 - 2014-01-18]" on German WIN7 Home > Premium (64bit)", own separate user profile. > (d) Already Reproducible with server installation of > "AOO 4.1.0-dev – English UI / German locale - [AOO410m14(Build:9760) > - Rev. 1582709 2014-03-30]" on German WIN7 Home Premium (64bit)", > own separate user profile. > (e) Was still ok with server installation of "AOO 4.1.0-Beta – English UI / > German locale - [AOO410m14(Build:9760) - Rev. 1572868 > 2014-02-25 11:43:28]" on German WIN7 Home Premium (64bit)", > own separate user profile. > (f) Seems not to be a general "paste as GDI Metafile" problem, that works > fine for Draw contents. > (g) If no side-effects are known I do not rate this one as a showstopper. Rainer, Thanks for the detailed information! Paint is the most frequent used application in Windows for image handling, and it is a very happy experience to quickly copy&paste between Paint and OpenOffice. That's the reason I request it for showstopper.
General problem, not only Impress / Draw
dibtools.cxx, line 623. ::ImplReadDIBBody() return false. Maybe the offset value is wrong.
Should consider about the no file header condition.
Because it is a clipboard related issue, maybe issue 124526 is also related?
root cause found - import/read of the given graphic format not correct.
(In reply to mroe from comment #11) > Because it is a clipboard related issue, maybe issue 124526 is also related? As this issue's root cause is the import/reading of a certain graphic format I am not sure, if issue 124526 is related.
Created attachment 83159 [details] patch to solve the defect
"orw" committed SVN revision 1586242 into trunk: 124639: correct consideration of not provided header offset when checking cer...
(In reply to mroe from comment #11) > Because it is a clipboard related issue, maybe issue 124526 is also related? Date of appearance does not match, so I do not think that the bugs have the same roots. But indeed, it might be that there are some similarities.
"orw" committed SVN revision 1586357 into branches/AOO410: 124639: correct consideration of not provided header offset when checking cer...
fixed on trunk and branch AOO410 for next release