[Libreoffice-bugs] [Bug 144529] New: Double ListBox dlg:selected attribute corrupts xdl dialog

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Sep 16 07:18:27 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=144529

            Bug ID: 144529
           Summary: Double ListBox dlg:selected attribute corrupts xdl
                    dialog
           Product: LibreOffice
           Version: 7.1.5.2 release
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: joppliger2.0 at gmail.com

After creating a dialog in the Basic editor and closing I was not able to
reopen the dialog for editing. Got an error message instead:
"Fehler beim Laden von BASIC im Dokument
file:///C:/Users/.../LibreOffice/4/user/basic/Standard/BookEntryDlg.xdl:
Allgemeiner Fehler.
Allgemeiner Ein-/Ausgabefehler."
The editor then opened but without any dialog visible in the editor.
Having a closer look at the xdl I found double entries for the dlg:selected
property of two ListBox controls. Both controls have manually entered value
lists (dlg:menuitems) and I have selected the first value as default in the
IDE. See below for code snippet. After removing the duplicate properties
manually in a text editor I can open the dialog without any issues.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN"
"dialog.dtd">
<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog"
xmlns:script="http://openoffice.org/2000/script" dlg:id="BookEntryDlg"
dlg:left="180" dlg:top="90" dlg:width="304" dlg:height="154"
dlg:closeable="true" dlg:moveable="true" dlg:title="qwertz">
 <dlg:bulletinboard>
  <dlg:menulist dlg:id="ListBox_CCY" dlg:tab-index="5" dlg:left="27"
dlg:top="49" dlg:width="38" dlg:height="13" dlg:spin="true" dlg:linecount="4">
   <dlg:menupopup>
    <dlg:menuitem dlg:value="CHF" dlg:selected="true" dlg:selected="true"/>
    <dlg:menuitem dlg:value="EUR"/>
    <dlg:menuitem dlg:value="USD"/>
    <dlg:menuitem dlg:value="GBP"/>
   </dlg:menupopup>
  </dlg:menulist>
  <dlg:menulist dlg:id="ListBox_VAT" dlg:tab-index="7" dlg:disabled="true"
dlg:left="207" dlg:top="49" dlg:width="40" dlg:height="13" dlg:spin="true">
   <dlg:menupopup>
    <dlg:menuitem dlg:value="7.7" dlg:selected="true" dlg:selected="true"/>
    <dlg:menuitem dlg:value="3.7"/>
    <dlg:menuitem dlg:value="2.5"/>
   </dlg:menupopup>
  </dlg:menulist>
  ...
  ...
 </dlg:bulletinboard>
</dlg:window>

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210916/b3f06cdb/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list