sfx2/source/dialog/styledlg.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a91494780bb59afe8c971003e6b809f1e66df050
Author:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
AuthorDate: Thu Feb 27 22:24:03 2025 +0100
Commit:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
CommitDate: Fri Feb 28 23:02:01 2025 +0100

    tdf#165487 Always select a tab page by default
    
    Change-Id: Iba56e9a519d45e1e1962bfdaaccc8f062d001286
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182340
    Tested-by: Jenkins
    Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>

diff --git a/sfx2/source/dialog/styledlg.cxx b/sfx2/source/dialog/styledlg.cxx
index 9e5abc01aa73..c4bab0881d54 100644
--- a/sfx2/source/dialog/styledlg.cxx
+++ b/sfx2/source/dialog/styledlg.cxx
@@ -46,7 +46,7 @@ SfxStyleDialogController::SfxStyleDialogController
     AddTabPage(u"organizer"_ustr, SfxManageStyleSheetPage::Create, nullptr);
 
     // With new template always set the management page as the current page
-    if (rStyle.GetName().isEmpty())
+    if (rStyle.GetName().isEmpty() || GetCurPageId().isEmpty())
         SetCurPageId(u"organizer"_ustr);
     else
     {

Reply via email to