Bug 140304 - Changing anchor from 'as character 'to character' changes the whole position of the image
Summary: Changing anchor from 'as character 'to character' changes the whole position ...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevAdvice
Depends on:
Blocks:
 
Reported: 2021-02-09 20:24 UTC by Telesto
Modified: 2024-05-17 02:22 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Image changes position after switching from "as character" to "to charaacter" (694.81 KB, video/mp4)
2022-07-01 11:31 UTC, Faisal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2021-02-09 20:24:05 UTC
Description:
Changing anchor from 'as character 'to character' changes the whole position of the image

Steps to Reproduce:
1. open attachment 163654 [details]
2. Select figure 3
3. Select to anchor (image jumps up) (above: The following examples..) -> ODD
4. Undo
5. Save as DOCX
6. File reload
7. Select to anchor (image jumps up) (above: The following examples..) -> expected

Actual Results:
Image jumps

Expected Results:
No so, more like DOCX


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 3ed9bba283a6a67864c0928186e277240be0d9ba
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL
Comment 1 Telesto 2021-02-09 20:26:36 UTC
Also in
LibreOffice 3.5.0rc3 
Build ID: 7e68ba2-a744ebf-1f241b7-c506db1-7d53735

Has NISZ any preference here? And some insight why this happens? Dislike different behavior between formats for same action.. but that's me
Comment 2 Dieter 2021-02-24 08:04:18 UTC
Telesto, could you please check your attachement? I can't find figure 3. File has no images at all.

=> NEEDINFO
Comment 3 Telesto 2021-02-24 15:10:36 UTC
(In reply to Dieter from comment #2)
> Telesto, could you please check your attachement? I can't find figure 3.
> File has no images at all.
> 
> => NEEDINFO

Wrong file for sure
Comment 4 Telesto 2021-02-24 15:13:22 UTC
It should be attachment 163568 [details]
2. Select figure 3
3. Change anchor to "to anchor "(image jumps up) (above: The following examples..) -> ODD
4. Undo
5. Save as DOCX
6. File reload
7. Select to anchor (image jumps up) (above: The following examples..) -> expected
Comment 5 Dieter 2021-02-25 07:32:42 UTC
(In reply to Telesto from comment #4)
> 3. Change anchor to "to anchor "(image jumps up)

Anchor to anchor?????
Comment 6 Telesto 2021-02-25 07:54:47 UTC
(In reply to Dieter from comment #5)
> (In reply to Telesto from comment #4)
> > 3. Change anchor to "to anchor "(image jumps up)
> 
> Anchor to anchor?????

Typo

It should be attachment 163568 [details]
2. Select figure 3
3. Change the current - "as character" to "to character"(image jumps up) (above: The following examples..) -> ODD
4. Undo
5. Save as DOCX
6. File reload
7. Select to anchor (image jumps up) (above: The following examples..) -> expected
Comment 7 Dieter 2021-02-25 20:01:26 UTC
after step 7 image stys at the same plce but following paragraph moves up, because wrap changed from "None" to "parallel" after docx-export

So bug is behaviour after step 3, correct?
Comment 8 Faisal 2022-07-01 11:31:07 UTC
Created attachment 181064 [details]
Image changes position after switching from "as character" to "to charaacter"

Cannot repro with figure 3, but can repro with figure 4. Screen capture attached.

Version: 7.3.4.2 (x64) / LibreOffice Community
Build ID: 728fec16bd5f605073805c3c9e7c4212a0120dc5
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: en-GB (en_US); UI: en-GB
Calc: CL
Comment 9 Stéphane Guillou (stragu) 2023-07-29 15:24:07 UTC
(In reply to Telesto from comment #6)
> It should be attachment 163568 [details]
> 2. Select figure 3
> 3. Change the current - "as character" to "to character"(image jumps up)
> (above: The following examples..) -> ODD
> 4. Undo
> 5. Save as DOCX
> 6. File reload
> 7. Select to anchor (image jumps up) (above: The following examples..) ->
> expected

Telesto, can you please review your steps once more? In step 7:
- I assume you also mean "to character"
- I assume you mean "image _does not_ jump up"

In any case, I can't reproduce the image jumping all the way above the "The following examples [...]" paragraph, but I do reproduce the following:

- in ODT, both Figures 3 and 4 jump up enough to overlap the previous paragraph (or all the way to the top of the page for figure 4), with the caption following it.
- in DOCX, the images do not move but the captions jump down.

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e26aeb882dd236adf19679d5df9b7ba5da1ed226
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 10 Telesto 2023-07-29 19:34:59 UTC
(In reply to Stéphane Guillou (stragu) from comment #9)
I'm rather confused by my own bug.. So probably better the close it..

However I did find *two* different issues:

Bug A
1. Open attachment 163568 [details] 
2. Open the Navigator.
3. Double click Frame301 (Notice a gray border around image + caption frame; the image is visually inside the frame)
4. Save a Copy as DOCX 2010-365
5. Open the copy
6. Notice that frame is around the caption text (apparently excluding the image). It's actually inside the frame (double click Frame301). The visual feedback is slightly confusing.

Bug B
1. Open attachment 163568 [details] 
2. Save As DOCX 2010-365
3. File Reload
4. Select the frame (not the image) called Figure 3 (Frame286 in navigator)
5. Change the anchor to: 'To Character'
6. CTRL+Z. Frame and image are out of sync.

Possibly reported before.
Comment 11 QA Administrators 2023-07-30 03:16:23 UTC Comment hidden (obsolete)
Comment 12 Stéphane Guillou (stragu) 2024-05-17 02:22:24 UTC
(In reply to Telesto from comment #10)
> Bug A
> 1. Open attachment 163568 [details] 
> 2. Open the Navigator.
> 3. Double click Frame301 (Notice a gray border around image + caption frame;
> the image is visually inside the frame)
> 4. Save a Copy as DOCX 2010-365
> 5. Open the copy
> 6. Notice that frame is around the caption text (apparently excluding the
> image). It's actually inside the frame (double click Frame301). The visual
> feedback is slightly confusing.
Can't reproduce this. Frame becomes a Drawing object, double-clicking Drawing object Frame301 in DOCX shows handles around caption+image.
> 
> Bug B
> 1. Open attachment 163568 [details] 
> 2. Save As DOCX 2010-365
> 3. File Reload
> 4. Select the frame (not the image) called Figure 3 (Frame286 in navigator)
> 5. Change the anchor to: 'To Character'
> 6. CTRL+Z. Frame and image are out of sync.
I can see that. Looks like bug 137073.

Version: 24.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 1b45ca1aa7d7cb8e7adcc07f8c60e26a413eca8c
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

Closing as "works for me".