Description: Crash when pasting a PNG or BMP selection onto a second or subsequent sheet. Steps to Reproduce: 1. Open a new Calc. 2. Create 2nd sheet and select 2nd sheet. 3. Select Cell [A1] & Copy. (You do not need to type anything in cell A1) 4. Paste Image in PNG or BMP using Paste-Dropdown-Icon. Actual Results: 5. Crash. Expected Results: 5. Do not crash. Reproducible: Always User Profile Reset: No Additional Info: Bug reports that may be relevant. Pasting a selection onto a sheet in PNG or BMP results in a blank image https://bugs.documentfoundation.org/show_bug.cgi?id=167075 Crash quiting LibreOffice with something on the clipboard (Win) https://bugs.documentfoundation.org/show_bug.cgi?id=166767 --- Reproducible with Version: 25.8.0.3 (X86_64) Build ID: ab0112984cb0c13cf3d4edd063593d096a42a1aa CPU threads: 4; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win Locale: en-US (ja_JP); UI: en-US Calc: CL threaded
Reproducible with Version: 25.8.0.3 (X86_64) Build ID: ab0112984cb0c13cf3d4edd063593d096a42a1aa CPU threads: 2; OS: Linux 6.1; UI render: default; VCL: gtk3 Locale: ja-JP (ja_JP.UTF-8); UI: en-US Calc: threaded
Regression introduced by: commit eb99e28a92517cac9534a6a52b9266777f735ce5 [log] author Xisco Fauli <xiscofauli@libreoffice.org> Fri Aug 08 13:34:54 2025 +0200 committer Xisco Fauli <xiscofauli@libreoffice.org> Fri Aug 08 16:27:45 2025 +0200 tree c87dab908048366a457504e3f4034e41b5db5bff parent 4862b5efbd6724d01e04b0951188f2a18c9362e8 [diff] tdf#167075: init doc shell before pasting as png/bmp
*** This bug has been marked as a duplicate of bug 167901 ***