sc/source/ui/pagedlg/scuitphfedit.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit 669e52fee34a68b6f535cb2f86e6043a834f194f Author: shark <[email protected]> AuthorDate: Sun Feb 15 04:26:37 2026 +0000 Commit: Heiko Tietze <[email protected]> CommitDate: Mon Feb 16 16:31:17 2026 +0100 tdf#103035 select everything for text formatting in header/footer dialog in sc when nothing is selected. Change-Id: I81e313e01d7d4b873e15351a5c70870edd861122 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199395 Tested-by: Jenkins Reviewed-by: Heiko Tietze <[email protected]> diff --git a/sc/source/ui/pagedlg/scuitphfedit.cxx b/sc/source/ui/pagedlg/scuitphfedit.cxx index 145841fd4230..6ee1326fd8ec 100644 --- a/sc/source/ui/pagedlg/scuitphfedit.cxx +++ b/sc/source/ui/pagedlg/scuitphfedit.cxx @@ -740,6 +740,13 @@ IMPL_LINK( ScHFEditPage, ClickHdl, weld::Button&, rBtn, void ) if (&rBtn == m_xBtnText.get()) { + if ( !m_pEditFocus->HasSelection() ) + { + ESelection aSel; + aSel.start.nIndex = 0; + aSel.end.nIndex = m_pEditFocus->GetEditEngine()->GetTextLen(0); + m_pEditFocus->GetEditView()->SetSelection(aSel); + } m_pEditFocus->SetCharAttributes(); } else
