Issue 124639 - 'Paste as GDI Metafile' from WIN Paintbrush pastes nothing (without error message)
Summary: 'Paste as GDI Metafile' from WIN Paintbrush pastes nothing (without error mes...
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: 4.1.0-dev
Hardware: All Windows, all
: P3 Normal (vote)
Target Milestone: 4.1.0
Assignee: Oliver-Rainer Wittmann
QA Contact:
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2014-04-09 13:54 UTC by Shenfeng Liu
Modified: 2017-05-20 10:35 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---
jsc: 4.1.0_release_blocker+


Attachments
patch to solve the defect (1.10 KB, patch)
2014-04-10 08:37 UTC, Oliver-Rainer Wittmann
orw: review?
Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description Shenfeng Liu 2014-04-09 13:54:42 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.
Comment 1 Edwin Sharp 2014-04-09 14:03:56 UTC
Copy from KSnapshot to Writer OK
AOO410m14(Build:9760)  -  Rev. 1585624
2014-04-08_04:11:10 - Rev. 1585644
Debian
Comment 2 Edwin Sharp 2014-04-09 14:15:43 UTC
No problem also with RC2 Rev. 1585426 -> Win only?
Comment 3 Shenfeng Liu 2014-04-09 15:09:59 UTC
@Edwin: the copy source must be from "Windows Paint" application to reproduce this issue.
Comment 4 Rainer Bielefeld 2014-04-09 15:17:11 UTC
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.
Comment 5 Oliver-Rainer Wittmann 2014-04-09 15:26:00 UTC
taking to work on a solution together with Armin.
Comment 6 jolatt 2014-04-09 15:31:35 UTC
(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
Comment 7 Shenfeng Liu 2014-04-09 16:41:23 UTC
(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.
Comment 8 Rainer Bielefeld 2014-04-09 17:51:06 UTC
General problem, not only Impress / Draw
Comment 9 Steve Yin 2014-04-10 03:32:25 UTC
dibtools.cxx, line 623.

::ImplReadDIBBody() return false. Maybe the offset value is wrong.
Comment 10 Steve Yin 2014-04-10 03:34:41 UTC
Should consider about the no file header condition.
Comment 11 mroe 2014-04-10 07:35:56 UTC
Because it is a clipboard related issue, maybe issue 124526 is also related?
Comment 12 Oliver-Rainer Wittmann 2014-04-10 07:38:28 UTC
root cause found - import/read of the given graphic format not correct.
Comment 13 Oliver-Rainer Wittmann 2014-04-10 07:41:45 UTC
(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.
Comment 14 Oliver-Rainer Wittmann 2014-04-10 08:37:09 UTC
Created attachment 83159 [details]
patch to solve the defect
Comment 15 SVN Robot 2014-04-10 08:47:59 UTC
"orw" committed SVN revision 1586242 into trunk:
124639: correct consideration of not provided header offset when checking cer...
Comment 16 Rainer Bielefeld 2014-04-10 12:42:07 UTC
(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.
Comment 17 SVN Robot 2014-04-10 16:11:39 UTC
"orw" committed SVN revision 1586357 into branches/AOO410:
124639: correct consideration of not provided header offset when checking cer...
Comment 18 Oliver-Rainer Wittmann 2014-04-10 16:15:32 UTC
fixed on trunk and branch AOO410 for next release