Bug 146316 - A marked extruded shape is not contained in CurrentSelection in Writer
Summary: A marked extruded shape is not contained in CurrentSelection in Writer
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-19 14:45 UTC by Regina Henschel
Modified: 2024-08-18 06:55 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example with included macros (13.07 KB, application/vnd.oasis.opendocument.text)
2021-12-19 14:45 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2021-12-19 14:45:35 UTC
Created attachment 177019 [details]
Example with included macros

Open attached document. It has a dummy text and an extruded shape 'MyStar'.
Use the Developer Tools with enabled 'Current Selection'.
Select the shape.
In Developer Tools click on tab Properties. If it still shows 'TextRange', click Refresh.
Result: Properties is empty.

Toggle shape to 2D mode and do the same. Result: Properties shows <Object@SwXShape>{MyStar}

The same problem is with Basic macros directly. The file has the Basic macros getSelectedShape_inWriter(oShape as variant) and examineShape_inWriter included. Macro examineShape_inWriter calls getSelectedShape_inWriter().
Using these macros you see the same:
If the shape is in 2D mode, the selected shape is contained in CurrentSelection.
If the shape is extruded to 3D mode, it is not contained in CurrentSelection.
Comment 1 Rafael Lima 2022-08-18 01:03:22 UTC
Confirmed with

Version: 7.3.5.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: pt-BR
Ubuntu package version: 1:7.3.5-0ubuntu0.22.04.1
Calc: threaded Jumbo
Comment 2 QA Administrators 2024-08-18 03:16:07 UTC Comment hidden (obsolete)
Comment 3 Regina Henschel 2024-08-18 06:55:08 UTC
The problem still exists in Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6c640ee2662318f32a22d8293ad7498109681933
CPU threads: 32; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: threaded