summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/SpellDialog.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-09-02 11:00:05 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-09-02 12:22:34 +0100
commitf42768fe0b60ecbbe9c68d775329bf28c0690131 (patch)
treee1782622cf2cf089f5cbf203ee65753e4328847d /cui/source/dialogs/SpellDialog.cxx
parented0f0fa730186a99e3e315ef55f63410af8146b2 (diff)
Resolves: fdo#68794 blank placeholders when there is no known language yet
Change-Id: I7f43144bd61ddc575d8b7094567433fdfd5ee291
Diffstat (limited to 'cui/source/dialogs/SpellDialog.cxx')
-rw-r--r--cui/source/dialogs/SpellDialog.cxx8
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");