summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNickWingate <nick.wingate@collabora.com>2022-08-12 09:48:18 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2022-11-20 11:25:50 +0100
commit346cda683763aa352cf67a035340e48133790f7f (patch)
treef87c2ee0f1d56c5de3215d579f1db6fe62484f33 /sfx2
parentd7f00522a2dd84b05371920ebbcf6f81323a666f (diff)
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.wingate@collabora.com> Change-Id: Ie6536dd75151db40f335985c1ce92236ce77ddc2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138180 Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142986 Tested-by: Jenkins
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/dinfdlg.cxx15
1 files changed, 6 insertions, 9 deletions
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
index 9cb911c469e0..eec2e4ca980d 100644
--- a/sfx2/source/dialog/dinfdlg.cxx
+++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -1796,17 +1796,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);
}