Created attachment 118505 [details] Error en imagen de fondo de Dialog Este Codigo lo uso para colocar una imagen de fondo en un dialogo. Para no depender de una carpeta con imagenes. Hasta la version 4.4 tanto sea en windows como en linux el codigo funciona, pero con desde la version 5 no. Quiero saber si es un error o a partir de esta version hay otra forma de realizar lo mismo. REM ***** BASIC ***** Private Dlg As object sub main Dim oPaginaDibujo As Object DialogLibraries.LoadLibrary("Standard") Dlg = CreateUnoDialog(DialogLibraries.Standard.Dialog1) oPaginaDibujo = ThisComponent.getCurrentController.getActiveSheet.getDrawPage() i = 0 do oForma = oPaginaDibujo.getByIndex(i) If oForma.Name = "Fondo" Then exit do End if i = i + 1 loop While i < oPaginaDibujo.getCount() oDlgModele = Dlg.Model with oDlgModele .PositionX = 100 .PositionY = 100 .ImageURL = oForma.GraphicURL .Width = 190 .Height = 145 .Title = "Graficos" End with oDlgControle = createUnoService( "com.sun.star.awt.UnoControlDialog" ) oDlgControle.setModel( oDlgModele ) dlg.Execute() end sub sub Salir_ dlg.endExecute() end sub A continuación adjunto el archivo de ejemplo con las imagenes de las distintas versiones. Desde ya muchas gracias, y los felicito por la calidad y el nivel de la suite sigan asi que aunque sea un detalle estoy mas que conforme.
Changing the product to LibreOffice, this is not related to LibreOffice Online. Gustavo: Thank you for the report; but it would help a lot if you provided an English translation - can you do that, please?
I can confirm with LO 5.0.1.2, win7 Works correct with Version 4.0.0.3 (Build ID: 7545bee9c2a0782548772a21bc84a9dcc583b89), regression Steps: - open attached file, enable macro - click button "Abrir Dialogo" Actual result: background of the dialog is without picture Expected results: background of the dialog is with picture See printscreens in attachment.
This seems to have begun at the below commit. Adding Cc: to tomaz.vajngerl@collabora.co.uk ; Could you possibly take a look at this one? Thanks 7017ed3775ee1db2457c6e9c587a57473b00a7ae is the first bad commit commit 7017ed3775ee1db2457c6e9c587a57473b00a7ae Author: Norbert Thiebaud <nthiebaud@gmail.com> Date: Thu Jul 9 22:38:58 2015 -0700 source 95ccc26ba71259be29fde8ba6b6f52ffbe5bd3c7 source 95ccc26ba71259be29fde8ba6b6f52ffbe5bd3c7 author Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> 2015-05-22 09:07:45 (GMT) committer Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> 2015-05-23 09:55:39 (GMT) commit 95ccc26ba71259be29fde8ba6b6f52ffbe5bd3c7 (patch) call ApplySettings sooner when painting
Migrating Whiteboard tags to Keywords: (bibisected) [NinjaEdit]
Still available with this version : Version: 5.2.0.3 (x64) Build ID: 7dbd85f5a18cfeaf6801c594fc43a5edadc2df0c Threads CPU : 4; Version de l'OS :Windows 6.29; UI Render : par défaut; Locale : fr-FR (fr_FR)
Adding Cc: to Tomaž Vajngerl
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present on a currently supported version of LibreOffice (5.4.1 or 5.3.6 https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to "inherited from OOo"; 4b. If the bug was not present in 3.3 - add "regression" to keyword Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug-20170929
There are two problems here: the earlier problem is in the description, and as such, this bug would be a duplicate of bug 92079, I think. The other problem is that I think the part of the macro that assigns a graphic shape to the background of a dialog is fair enough, but it was broken with core.git commit fb29e6eeeaad5255bb924ff59162a83ed80bfb0a (svx: removing GraphicURL and OWN_ATTR_GRAFURL, fix writerfilter, 2018-03-08). I'll look at that second problem.
Miklos Vajna committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/+/3341986547b69bcb4c38e4ccb2f0853a3a569bb5%5E%21 tdf#93998 toolkit: restore support for setting dialog background from shape It will be available in 6.4.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Verified in Version: 6.4.0.0.alpha0+ Build ID: 41cd3e8e817c8c33a13608e62eeb06ce2c6977e4 CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US Calc: threaded @Miklos, thanks for fixing this issue!
Miklos Vajna committed a patch related to this issue. It has been pushed to "libreoffice-6-3": https://git.libreoffice.org/core/+/ef1224b6c80f478127d4b1ee10916b379dee56ec%5E%21 tdf#93998 toolkit: restore support for setting dialog background from shape It will be available in 6.3.2. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.