Bug 146316

Summary: A marked extruded shape is not contained in CurrentSelection in Writer
Product: LibreOffice Reporter: Regina Henschel <rb.henschel>
Component: BASICAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: rafael.palma.lima
Priority: medium    
Version: Inherited From OOo   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=150305
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Example with included macros

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