Created attachment 158460 [details] Open the form and try to switch to "no border" by the button Open the attached database. Open the form. There are thre buttons which should switch the kind of border of all controls. oField1.border = 0 should set "no border" but it doesn't work. Switching between (1) - 3D and (2) - flat will work. It is possible to set controls without border through the GUI, but it is impossible to do this through macros. Tested with LO 6.4.1.2 on OpenSUSE 15.1 64bit rpm Linux. It's the same buggy behavior in LO 6.1.1.2, could also be in versions before this.
On pc Debian x86-64 with master sources updated today, I could reproduce this. pb is I don't know how to find the code pointer. "border" is present too many times in code.
Mike: any idea how to find a code pointer for this kind of pb or know who may help here? I don't know what pattern to search in Opengrok or where to put some break on gdb.
(In reply to Julien Nabet from comment #2) > Mike: any idea how to find a code pointer for this kind of pb Might be VCLXWindow::setProperty - look for "case BASEPROPERTY_BORDER"
(In reply to Mike Kaganski from comment #3) > (In reply to Julien Nabet from comment #2) > > Mike: any idea how to find a code pointer for this kind of pb > > Might be VCLXWindow::setProperty - look for "case BASEPROPERTY_BORDER" Indeed, I put some traces in https://opengrok.libreoffice.org/xref/core/toolkit/source/awt/vclxwindow.cxx?r=87030862#1681 and we enter in this part. Just for curiosity, how did you find it?
Badfully I understand nothing here in toolkit part, peer etc. VCLXWindow::setProperty is called once in design mode where it works this same method is called three times when using macro and it doesn't work. => uncc myself Hopefully some people are trying to rationalize/simplify LO code.
(In reply to Julien Nabet from comment #4) > Just for curiosity, how did you find it? Oh, sorry, I don't really know how I arrived to that conclusion. Something like a guess, because I seem to remember touching that function sometime ago.
If I set the border property to "NOBORDER (4096)" the border disappears. Maybe there is a misunderstanding between "NONE" and "NOBORDER"?
Dear Robert Großkopf, 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 with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. 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) from https://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: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Bug is still the same in LO 7.4.5.1 on OpenSUSE 15.3 64bit rpm Linux. Might be there is missing a refresh - no border won't change any pixel around a control.
(In reply to Andreas Heinisch from comment #7) > If I set the border property to "NOBORDER (4096)" the border disappears. > Maybe there is a misunderstanding between "NONE" and "NOBORDER"? The description misses one important bit: "Look at UnoControlEditModel Service documentation at https://api.libreoffice.org/docs/idl/ref/servicecom_1_1sun_1_1star_1_1awt_1_1UnoControlEditModel.html#a54d3ff280d892218d71e667f81ce99d4, and see that the three documented values for the Border property are "0: No border", "1: 3D border", and "2: simple border"". It seems to me that Andreas could be right, suspecting the documentation issue here. Or maybe (better) the "0: No border" should be converted to the VCL-internal "0x1000 NOBORDER" in UnoControlFormattedFieldModel::convertFastPropertyValue (and likewise for other control model services having Border property with identical allowed value sets, after testing that they indeed also have the same issue).