From f42768fe0b60ecbbe9c68d775329bf28c0690131 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 2 Sep 2013 11:00:05 +0100 Subject: Resolves: fdo#68794 blank placeholders when there is no known language yet Change-Id: I7f43144bd61ddc575d8b7094567433fdfd5ee291 --- cui/source/dialogs/SpellDialog.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'cui/source/dialogs/SpellDialog.cxx') 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("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("resumeft")->GetText(); m_sNoSuggestionsST = get("nosuggestionsft")->GetText(); - m_sTitleSpelling = get("alttitleft")->GetText(); get(m_pLanguageFT, "languageft"); get(m_pLanguageLB, "languagelb"); -- cgit