[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - sw/source
Caolán McNamara
caolanm at redhat.com
Thu Apr 24 07:25:01 PDT 2014
sw/source/ui/shells/langhelper.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit f609515bbd0fda93fa8acd6d9c553f974fc9c03b
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Apr 24 13:51:27 2014 +0100
crash in selecting text in comments midway in para
(cherry picked from commit 7dca5341d799d59a81e6dac84586fa2daa02a550)
Conflicts:
sw/source/core/uibase/shells/langhelper.cxx
Change-Id: Iaab71e201fae6a03936ccc6aac040027a183209c
Reviewed-on: https://gerrit.libreoffice.org/9148
Tested-by: Norbert Thiebaud <nthiebaud at gmail.com>
Reviewed-by: Norbert Thiebaud <nthiebaud at gmail.com>
diff --git a/sw/source/ui/shells/langhelper.cxx b/sw/source/ui/shells/langhelper.cxx
index d3055a2..52ca770 100644
--- a/sw/source/ui/shells/langhelper.cxx
+++ b/sw/source/ui/shells/langhelper.cxx
@@ -573,7 +573,8 @@ namespace SwLangHelper
// string for guessing language
OUString aText;
- aText = rEditEngine->GetText(aDocSelection);
+ // get the full text of the paragraph that the end of selection is in
+ aText = rEditEngine->GetText(aDocSelection.nEndPos);
if (!aText.isEmpty())
{
xub_StrLen nStt = 0;
More information about the Libreoffice-commits
mailing list