https://bugs.documentfoundation.org/show_bug.cgi?id=162793
Buovjaga <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard| QA:needsComment | CC| |ilmari.lauhakangas@libreoff | |ice.org Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #1 from Buovjaga <[email protected]> --- 1. In the Sidebar, create a new gallery theme called _TestTheme 2. Create a line and a circle and group them (select both, right-click, group) 3. Create a new BASIC macro and run it: Sub Tst_InsertGrapicObject Dim oGalleryProvider, oTheme, oShape, oGraph Dim oSelection Dim nRslt& oGalleryProvider = createUnoService("com.sun.star.gallery.GalleryThemeProvider") oTheme = oGalleryProvider.getByName("_TestTheme") ' "_TestTheme" does exist and has some elements added via the UI oGraph = ThisComponent.createInstance("com.sun.star.drawing.GraphicObjectShape") oSelection = ThisComponent.currentController.Selection ' selected is a simple group shape, line + circle If IsEmpty(oSelection) then msgBox "No selection" Else oGraph = ThisComponent.currentController.Selection.getByIndex(0) nRslt = oTheme.insertDrawingByIndex (oGraph, 2) oTheme.update() ' makes no difference msgbox nRslt ' returns -1 ' NB ' oTheme.removeByIndex(1) ' does do the expected.. End If End Sub I reproduce that nothing happens. Arch Linux 64-bit Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 3b267b65d24616fe49ca1410b123d186a59541d0 CPU threads: 8; OS: Linux 6.11; UI render: default; VCL: kf6 (cairo+wayland) Locale: fi-FI (fi_FI.UTF-8); UI: en-US Calc: CL threaded Built on 14 November 2024 -- You are receiving this mail because: You are the assignee for the bug.
