https://bugs.documentfoundation.org/show_bug.cgi?id=105066

--- Comment #11 from zzz <[email protected]> ---
I am not odinatlas but will report that the problem is still alive and harmful
at is was.

Retest environment:
Version: 7.3.2.2 (x64) / LibreOffice Community
Build ID: 49f2b1bff42cfccbd8f788c8dc32c1c309559be0
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: ja-JP (ja_JP); UI: en-US
Calc: CL

Retest result:
Problem still reproduces 100% (tested 2 times each) for both procedures and
test data:
  Bug 105066 odinatlas 2017-01-03 15:29:13 UTC 
  Bug 134042 zzz 2020-06-16 13:47:26 UTC

The procedure description step 3 and 4 in Bug 105066 odinatlas 2017-01-03
15:29:13 UTC is insufficient to follow, so I'll amend it:
1. Open attached Bug_Test.ods. There are two images on the same sheet.
2. Copy image 1 and paste special by select bitmap to cell A1
3-1. Then copy image 2
3-2. Click any cell that have no object over it, to switch LibreCalc's mode to
cell-keyboard-navigation-mode.
3-3. Using the keyboard arrow key, move the cell focus to the top-left cell A1,
which holds image 1.
4-1. Press the Context menu key.
4-2. Paste image2 by Context menu|Paste Special|Paste Special...|Bitmap Image
(BMP)
5. The two images on A1 becomes one blank image frame.

I found that the behaviour depends on the source application software of the
second paste ("image2", hereafter). Here, "source" means the source of the
image in clipboard.
As a source, LibreCalc is a special case where the problem happens only under
limited conditions. For all other apps, the condition is broader.

First, a definition of paste procedure codes used later:
(a1) Ctrl+V method:
  1. Copy image1 from the source software.
  2. Switch to LibreCalc.
  3. Click a cell you want to paste the image to, say, A1.
  4. Paste image1 by Ctrl+V.
  5. Immediately paste it again by Ctrl+V.
(b1) Mouse Context menu Paste method:
  1. Paste image1 by Ctrl+V.
  2. Switch to the source software. Select all and Copy image2 from the source
software.
  3. Switch to LibreCalc.
  4. Click any cell that have no object over it, to switch LibreCalc's mode to
cell-keyboard-navigation-mode.
  5. Using the keyboard arrow key, move the cell focus to the top-left cell
that holds image1.
  6. Right-click on the pasted image1, to open the context menu.
     * Note that BOTH the cell-cursor and the mouse-cursor-at-click must be on
image1.
  7. Paste image2 by Context menu|"Paste".
     * No "Paste Special" appears in the context menu for this case.
(b2) Keyboard Context menu Paste method:
  1. Paste image1 by Ctrl+V.
  2. Switch to the source software. Select all and Copy image2 from the source
software.
  3. Switch to LibreCalc.
  4. Click any cell that have no object over it, to switch LibreCalc's mode to
cell-keyboard-navigation-mode.
  5. Using the keyboard arrow key, move the cell focus to the top-left cell
that holds image1.
  6. Press the context menu key, to open the context menu.
  7. Paste image2 by Context menu|"Paste".
(c1) Keyboard Context menu Paste Special method:
  1. Paste image1 by Ctrl+V.
  2. Switch to the source software. Select all and Copy image2 from the source
software.
  3. Switch to LibreCalc.
  4. Click any cell that have no object over it, to switch LibreCalc's mode to
cell-keyboard-navigation-mode.
  5. Using the keyboard arrow key, move the cell focus to the top-left cell
that holds image1.
  6. Press the context menu key, to open the context menu.
  7. Paste image2 by Context menu|Paste Special...|Bitmap Image (BMP)
(c2) Menubar Paste Special method:
  1. Paste image1 by Ctrl+V.
  2. Switch to the source software. Select all and Copy image2 from the source
software.
  3. Switch to LibreCalc.
  4. Click any cell that have no object over it, to switch LibreCalc's mode to
cell navigation mode.
  5. Using the keyboard arrow key, move the cell focus to the top-left cell
that holds image1.
  6. Click the Menubar.
  7. Paste image2 by Menubar Edit|Paste Special|Paste Special...|Bitmap Image
(BMP)

Experiment results:

- Source LibreCalc 7.3.2.2:
  (a1) Pastes correctly (two image objects overlayed)
  (b1) Pastes correctly (two image objects overlayed)
  (b2) Pastes correctly (two image objects overlayed)
  (c1) Problem reproduces
  (c2) Problem reproduces

- Source IrfanView 4.58 32 bit:
  (a1) Problem reproduces
  (b1) Problem reproduces
  (b2) Problem reproduces
  (c1) Problem reproduces
  (c2) Problem reproduces

- Source Microsoft Paint bundled with Windows 10 21H2:
  (a1) Problem reproduces
  (b1) Problem reproduces
  (b2) Problem reproduces
  (c1) Problem reproduces
  (c2) Problem reproduces
  * In Microsoft Paint, don't forget to "select all" before copying.

- Source GIMP 2.10.28:
  (a1) Problem reproduces
  (b1) Problem reproduces
  (b2) Problem reproduces
  (c1) Problem reproduces
  (c2) Problem reproduces
  * Sidenote: the size of image1 pasted from GIMP is slightly larger than the
original image1 in Bug_Test.ods

- Source LibreDraw 7.3.2.2:
  (a1) Pastes correctly (two image objects overlayed)
  (b1) Pastes correctly (two image objects overlayed)
  (b2) Pastes correctly (two image objects overlayed)
  (c1) Problem reproduces
  (c2) Problem reproduces

- Source Google Chrome 103.0.5060.134 (Official Build) (64 bit)
  https://www.libreoffice.org/themes/libreofficenew/img/logo.png in
https://www.libreoffice.org/
  (a1) Problem reproduces
  (b1) Problem reproduces
  (b2) Problem reproduces
  (c1) Problem reproduces
  (c2) Problem reproduces

- Source Firefox 98.0.2 (64-bit):
  https://www.libreoffice.org/themes/libreofficenew/img/logo.png in
https://www.libreoffice.org/
  * fail to paste from Firefox due to Bug 134031 - "[EDITING]Images copied from
Firefox won't paste" (which is marked RESOLVED but actually is an alive and
remaining problem)

So this Bug 105066's title is too specific ("Paste special"), and the test file
is too forgiving, thus will cause underestimation of the whole problem.
I will revoke Bug 134042 because it addresses problems that Bug 105066 does
not: The range of cases is broader for sources other than LibreCalc. This means
that it has an additional issue in intersoftware clipboard handling.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to