diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-09-02 11:00:05 +0100 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-09-03 09:13:57 +0000 |
commit | 39213d044b40704be72fb2c3b35059b140bd2ef3 (patch) | |
tree | 8111f54468074d2b280bd0b5c0315fadcf4ff8f4 | |
parent | 87076efdc964e003ea11716cf0f59c8e9b384a24 (diff) |
Resolves: fdo#68794 blank placeholders when there is no known language yet
Change-Id: I7f43144bd61ddc575d8b7094567433fdfd5ee291
(cherry picked from commit f42768fe0b60ecbbe9c68d775329bf28c0690131)
Reviewed-on: https://gerrit.libreoffice.org/5751
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
-rw-r--r-- | cui/source/dialogs/SpellDialog.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx index f4238c789011..f8cd1c94e2c8 100644 --- a/cui/source/dialogs/SpellDialog.cxx +++ b/cui/source/dialogs/SpellDialog.cxx @@ -189,9 +189,15 @@ SpellDialog::SpellDialog(SpellDialogChildWindow* pChildWindow, , rParent(*pChildWindow) { m_sTitleSpellingGrammar = GetText(); + m_sTitleSpelling = get<FixedText>("alttitleft")->GetText(); + + // fdo#68794 set initial title for cases where no text has been processed + // yet to show its language attributes + OUString sTitle = rParent.HasGrammarChecking() ? m_sTitleSpellingGrammar : m_sTitleSpelling; + SetText(sTitle.replaceFirst("$LANGUAGE ($LOCATION)", "")); + m_sResumeST = get<FixedText>("resumeft")->GetText(); m_sNoSuggestionsST = get<FixedText>("nosuggestionsft")->GetText(); - m_sTitleSpelling = get<FixedText>("alttitleft")->GetText(); get(m_pLanguageFT, "languageft"); get(m_pLanguageLB, "languagelb"); |