Issue 111243

Summary: loop - hang when inserting object in a special way
Product: Writer Reporter: Rainer Bielefeld <rainerbielefeld_ooo_qa>
Component: codeAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues, mst.ooo
Version: OOo 3.1.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
Pls see original report none

Description Rainer Bielefeld 2010-04-29 05:46:31 UTC
When I copy / paste contents from DRAW, undo and paste again, OOo will run into
loop or hang.

Steps to reproduce:
0. Unzip "testkit.zip"
1. open both documents from attached test kit
2. go to DRAWing "sampledrawing.odg"
3. Mouse click on smiley
  control points will appear
4. <cntrl>+<c>
5. change to sampletext.odt
6. move cursor to end of contents (top of last page 14) if necessary
7. <cntrl>+<v>
  Smiley will be inserted, you see that it's too big for page
8. Press Undo button
9. click Insert icon in toolbar
10. select "GDI Metafile"
    Expected: Smiley will be inserted again
    Actual: Smiley inserted, then an endless loop starts inserting new pages 
            without end

With a little modification in the process you can cause a hang:

101. open both documents from test kit
102. go to DRAWing "sampledrawing.odg"
103. Mouse click on smiley
  control points will appear
104. Menu 'Edit -> Copy'
105. change to sampletext.odt
106. move cursor to end of contents (top of last page 14) if necessary
107. Menu 'Edit - paste'
     Smiley will be inserted, you see that it's too big for page
108. Press Undo button
109. Menu 'Edit -> Paste Special'
110. select "GDI Metafile", <ok>
    Expected: Smiley will be inserted again
    Actual: Smiley inserted, then OOo hangs

Same result 

Related to Issue 59836?
Comment 1 Rainer Bielefeld 2010-04-29 05:48:08 UTC
Created attachment 69165 [details]
Pls see original report
Comment 2 Rainer Bielefeld 2010-04-29 05:49:33 UTC
Terminating my aborted report:
Also reproducible with "Ooo-Dev 3.3 multilingual version English UI WIN XP:
[DEV300m77 (Build 9496)]"!
Comment 3 michael.ruess 2010-04-29 10:59:05 UTC
MRU->OD: pasting the the drawing object from the impress file will result in
correct result. But then after "Undo" it looks that the cursor is located in the
header - when now pasting the object as GDI Metafile, the pages will count up
and up. 
Comment 4 Marcus 2017-05-20 11:15:44 UTC
Reset assigne to the default "issues@openoffice.apache.org".