From c76b8783e2ada67449fd88390c30943ca7f5a55e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 27 Mar 2014 15:52:31 +0000 Subject: [PATCH] Related: fdo#73936 detect dropdown form fields as fields for spellchecking so they will appear grayed in the spell check preview (they don't appear at all yet, they will in later commits) Change-Id: Ic0c6fe2979c7c731d0efb85c747afca2268abc53 --- sw/source/core/edit/edlingu.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sw/source/core/edit/edlingu.cxx b/sw/source/core/edit/edlingu.cxx index 41fcaa4af3ea..ed7b06729244 100644 --- a/sw/source/core/edit/edlingu.cxx +++ b/sw/source/core/edit/edlingu.cxx @@ -1658,6 +1658,11 @@ void SwSpellIter::AddPortion(uno::Reference< XSpellAlternatives > xAlt, break; } } + else if (cChar == CH_TXT_ATR_FORMELEMENT) + { + SwPosition aPos(*pCrsr->GetMark()); + bField = pMySh->GetDoc()->getIDocumentMarkAccess()->getFieldmarkFor(aPos); + } LanguageType eCurLanguage = lcl_GetLanguage(*GetSh()); bool bRedline = aNextRedline.nLeft == pCrsr->GetPoint()->nContent.GetIndex();