[Libreoffice-bugs] [Bug 135529] Can't set value today on Custom Properties by today button.

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Aug 8 08:29:37 UTC 2020


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

Julien Nabet <serval2412 at yahoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |caolanm at redhat.com,
                   |                            |serval2412 at yahoo.fr
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #2 from Julien Nabet <serval2412 at yahoo.fr> ---
On pc Debian x86-64 with master sources updated today, I could reproduce this.

I found use of today in 2 locations:
svtools/uiconfig/ui/calendar.ui:43:            <property name="label"
context="calendar|STR_SVT_CALENDAR_TODAY">Today</property>
svtools/uiconfig/ui/datewindow.ui:48:                <property name="label"
context="calendar|STR_SVT_CALENDAR_TODAY">Today</property>

In our case, we use datewindow.ui
This one is used in:
svtools/source/brwbox/ebbcontrols.cxx:429:        ,
m_xCalendarBuilder(Application::CreateBuilder(m_xMenuButton.get(),
"svt/ui/datewindow.ui"))
svtools/source/control/ctrlbox.cxx:1622:    ,
m_xBuilder(Application::CreateBuilder(m_xControl.get(),
"svt/ui/datewindow.ui"))

First one uses DateControl which contains m_xTodayBtn (also m_xNoneBtn)
Second one uses SvtCalendarBox which doesn't contain these.

Custom property uses the second one, that's why "Today" button doesn't work.
#0  SvtCalendarBox::SvtCalendarBox(std::unique_ptr<weld::MenuButton,
std::default_delete<weld::MenuButton> >) (this=0x87b1c90, pControl=...) at
svtools/source/control/ctrlbox.cxx:1626
#1  0x00007ffff492e43f in
CustomPropertyLine::CustomPropertyLine(CustomPropertiesWindow*, weld::Widget*)
(this=0x86cf6e0, pParent=0x6ac2150, pContainer=0x86700f8) at
sfx2/source/dialog/dinfdlg.cxx:1268
#2  0x00007ffff4932220 in CustomPropertiesWindow::CreateNewLine()
(this=0x6ac2150) at sfx2/source/dialog/dinfdlg.cxx:1465
#3  0x00007ffff4932195 in CustomPropertiesWindow::SetVisibleLineCount(unsigned
int) (this=0x6ac2150, nCount=6) at sfx2/source/dialog/dinfdlg.cxx:1453
#4  0x00007ffff4933fdd in CustomPropertiesControl::ResizeHdl(Size const&)
(this=0x87be0d0, rSize=Size = {...}) at sfx2/source/dialog/dinfdlg.cxx:1819
#5  0x00007ffff4933d58 in CustomPropertiesControl::Init(weld::Builder&)
(this=0x87be0d0, rBuilder=...) at sfx2/source/dialog/dinfdlg.cxx:1808
#6  0x00007ffff4934697 in
SfxCustomPropertiesPage::SfxCustomPropertiesPage(weld::Container*,
weld::DialogController*, SfxItemSet const&)
    (this=0x86f5f20, pPage=0x87be0b8, pController=0x72273e0,
rItemSet=SfxItemSet of pool 0x33d8f50 with parent 0x0 and Which ranges: [(5535,
5535), (5590, 5590), (6410, 6410), (6518, 6518)] = {...})
    at sfx2/source/dialog/dinfdlg.cxx:1874

It seems there are 2 similar classes and one seems in unfinished state.

Caolán: thought you might be interested in this one.

-- 
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/20200808/d5c9647f/attachment.htm>


More information about the Libreoffice-bugs mailing list