Bug 128773 - Images not shown and new cannot be pasted in frame before caption if anchor type is changed
Summary: Images not shown and new cannot be pasted in frame before caption if anchor t...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: lowest minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: preBibisect, regression
: 128772 (view as bug list)
Depends on:
Blocks: Frame
  Show dependency treegraph
 
Reported: 2019-11-13 11:32 UTC by laurens
Modified: 2022-06-07 13:40 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
problem document example (35.41 KB, application/vnd.oasis.opendocument.text)
2019-11-13 11:33 UTC, laurens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description laurens 2019-11-13 11:32:51 UTC
1. Copy the chap 5 circuit schematic into the frame (above caption)
2. Change anchor type to "as character"
3. Bug: picture disappears, in large documents the cursor goes to start or end of doc.

see attached odt
Version: 6.2.7.1
Build ID: 23edc44b61b830b7d749943e020e96f5a7df63bf
CPU threads: 12; OS: Mac OS X 10.14.6; UI render: default; VCL: osx; 
Locale: nb-NO (en_NO.UTF-8); UI-Language: en-US
Calc: threaded

NB Will not update to test on new versions due to the longstanding bug of blurry text in Calc on retina screens for LO > 6.2.7
Comment 1 laurens 2019-11-13 11:33:25 UTC
Created attachment 155779 [details]
problem document example
Comment 2 Dieter 2019-11-13 12:52:03 UTC
*** Bug 128772 has been marked as a duplicate of this bug. ***
Comment 3 Dieter 2019-11-13 12:54:29 UTC Comment hidden (obsolete)
Comment 4 sdc.blanco 2020-01-31 14:08:45 UTC
Repro in 6.3.4.2  (image disappears)

Tested by:

1. cutting Schematic (image)
2. putting cursor inside of frame
3. pasting image
4. right-click on image and change anchor to "as character"


No repro  (image remains in frame, anchored "as character")

Version: 7.0.0.0.alpha0+ (x64)
Build ID: eeb2d19e77d6dc47c68e8ba0920a02cf64a1247b
CPU threads: 8; OS: Windows 10.0 Build 18363; UI render: default; VCL: win; 

Additional information:

1. 6.3.4.2 offered anchor option "to frame"
2. 7.0.0.0.alpha does not offer "to frame" anchor
3. In 7.0.0.0.alpha, able to move frame (with image "as character") and image moves with frame.
4. not tested with MacOS
Comment 5 Timur 2020-03-18 09:50:52 UTC
Wrongly set to Needinfo. Repro also Win 7.0+. New. Although strange. 
Happens only when image is pasted before caption:
"Picture disappears when pasted in frame before caption and anchor type is changed". 
There's a (also strange) workaround: paste on selected frame and undo. 

(Another bug, needs be searched: undo doesn't remove pasted image).

BUT: even more funny is that image is already copied in frame, twice, if opened with LO 3.4. Not shown since LO 3.5. (also some temp. f-up with 4.0 when no image was shown, but reverted soon, so not relevant).
Let's set regression for this.
Comment 6 Timur 2020-03-18 09:56:49 UTC Comment hidden (obsolete)
Comment 7 Aron Budea 2020-04-04 14:33:48 UTC
(In reply to Timur from comment #6)
> In 43all Lin bibisect repo already wrong in oldest.
Setting keyword preBibisect accordingly.
Comment 8 QA Administrators 2022-04-05 03:50:42 UTC Comment hidden (obsolete)
Comment 9 Dieter 2022-06-06 16:44:30 UTC
*** Bug 149458 has been marked as a duplicate of this bug. ***
Comment 10 sdc.blanco 2022-06-06 20:39:32 UTC
(In reply to Timur from comment #5)
> Although strange. 
> Happens only when image is pasted before caption:
I believe I can explain the observed behavior, but I will it to others to decide whether there is a valid "problem" here, and how to describe it.

Tests conducted with 7.4.0.0.alpha1+:

1. Open test file.
   (notice, in Navigator, that in addition to the schematic (Name: Image1) two images are hidden "Image2" and "test")

2. In the frame, where the image is supposed to be copied, place cursor in front of the first character (i.e., "F").
   (notice that it is not possible to add any spaces before that "F" character)

3. Press Ctrl+M (or Clear Direct Formatting icon).

   (The two hidden images become visible (both anchors as character).   

4. Delete both images, place cursor before "F" again.

   (notice that again it is not possible to add spaces before "F")

5. Press Ctrl+M

6.  Now possible to add the image before "F" and change anchor to "as character", without the image disappearing.

No explanation for how the file got into that state, but STR should give enough information to understand likely cause of "observed/reproduced" behavior. 


Additional information

1. Starting with "fresh" test file, "cut" schematic image (Image1 not shown now in Navigator), paste before "F" (Image1 appears again in Navigator). Cursor goes to EOD, but image is not visible.  (Using Navigator, with Image1, "Go to" does not change cursor position, regardless of what cursor is placed, and not image frame is highlighted.  "Edit" does not open the properties dialog.)

2. Do not think bug 149458 (comment 9) is a DUP of this ticket.