diff options
Diffstat (limited to 'sw/source/uibase/uiview/viewling.cxx')
-rw-r--r-- | sw/source/uibase/uiview/viewling.cxx | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sw/source/uibase/uiview/viewling.cxx b/sw/source/uibase/uiview/viewling.cxx index ba3f2df868bf..461f7c8afa58 100644 --- a/sw/source/uibase/uiview/viewling.cxx +++ b/sw/source/uibase/uiview/viewling.cxx @@ -692,7 +692,20 @@ bool SwView::ExecSpellPopup(const Point& rPt) // get paragraph text OUString aParaText; if (pNode) - aParaText = pNode->GetText(); // this may include hidden text but that should be Ok + { + pCursorShell->Push(); + if (!pCursorShell->IsSttPara()) + { + pCursorShell->MovePara(GoCurrPara, fnParaStart); + } + pCursorShell->SetMark(); + if (!pCursorShell->IsEndPara()) + { + pCursorShell->MovePara(GoCurrPara, fnParaEnd); + } + aParaText = pCursorShell->GetSelText(); + pCursorShell->Pop(SwCursorShell::PopMode::DeleteCurrent); + } else { OSL_FAIL("text node expected but not found" ); |