sfx2/source/dialog/dinfdlg.cxx | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-)
New commits: commit 4666a1b52028ba60f80ad93a756f95bb174dbe7b Author: NickWingate <nick.wing...@collabora.com> AuthorDate: Fri Aug 12 09:48:18 2022 +0100 Commit: Szymon Kłos <szymon.k...@collabora.com> CommitDate: Tue Aug 16 12:40:37 2022 +0200 Fix opening duration custom property shows text Before saving a duration custom property and then closing and opening file props wouldn't show the duration type and value and instead blank text Signed-off-by: NickWingate <nick.wing...@collabora.com> Change-Id: Ie6536dd75151db40f335985c1ce92236ce77ddc2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138180 Reviewed-by: Szymon Kłos <szymon.k...@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index 2a32e9c03dc9..818948f99461 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -1799,17 +1799,14 @@ void CustomPropertiesWindow::ReloadLinesContent() pLine->m_xDurationField->SetDuration(aTmpDuration); } - if (nType != Custom_Type_Duration) + if (Custom_Type_Boolean == nType) { - if (Custom_Type_Boolean == nType) - { - if (bTmpValue) - pLine->m_xYesNoButton->CheckYes(); - else - pLine->m_xYesNoButton->CheckNo(); - } - pLine->m_xTypeBox->set_active_id(OUString::number(nType)); + if (bTmpValue) + pLine->m_xYesNoButton->CheckYes(); + else + pLine->m_xYesNoButton->CheckNo(); } + pLine->m_xTypeBox->set_active_id(OUString::number(nType)); pLine->DoTypeHdl(*pLine->m_xTypeBox); }