summaryrefslogtreecommitdiffstats
path: root/sw/source/uibase/shells/langhelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/shells/langhelper.cxx')
-rw-r--r--sw/source/uibase/shells/langhelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/shells/langhelper.cxx b/sw/source/uibase/shells/langhelper.cxx
index 9900952c9d46..097a8b0d8408 100644
--- a/sw/source/uibase/shells/langhelper.cxx
+++ b/sw/source/uibase/shells/langhelper.cxx
@@ -515,7 +515,7 @@ namespace SwLangHelper
// string for guessing language
OUString aText;
SwPaM *pCursor = rSh.GetCursor();
- SwTextNode *pNode = pCursor->GetNode().GetTextNode();
+ SwTextNode *pNode = pCursor->GetPointNode().GetTextNode();
if (pNode)
{
aText = pNode->GetText();