diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-09-02 11:00:05 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-09-02 12:22:34 +0100 |
commit | f42768fe0b60ecbbe9c68d775329bf28c0690131 (patch) | |
tree | e1782622cf2cf089f5cbf203ee65753e4328847d /cui | |
parent | ed0f0fa730186a99e3e315ef55f63410af8146b2 (diff) |
Resolves: fdo#68794 blank placeholders when there is no known language yet
Change-Id: I7f43144bd61ddc575d8b7094567433fdfd5ee291
Diffstat (limited to 'cui')
-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 76bd8c29ae82..dfaef3112983 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"); |