1 |
From 29b969d29225400e9f8ace12ea2c1276541f9ead Mon Sep 17 00:00:00 2001 |
2 |
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com> |
3 |
Date: Thu, 24 Apr 2014 13:51:27 +0100 |
4 |
Subject: [PATCH] crash in selecting text in comments midway in para |
5 |
|
6 |
(cherry picked from commit 7dca5341d799d59a81e6dac84586fa2daa02a550) |
7 |
|
8 |
Conflicts: |
9 |
sw/source/core/uibase/shells/langhelper.cxx |
10 |
|
11 |
Change-Id: Iaab71e201fae6a03936ccc6aac040027a183209c |
12 |
--- |
13 |
sw/source/ui/shells/langhelper.cxx | 3 ++- |
14 |
1 file changed, 2 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/sw/source/ui/shells/langhelper.cxx b/sw/source/ui/shells/langhelper.cxx |
17 |
index d3055a2..52ca770 100644 |
18 |
--- a/sw/source/ui/shells/langhelper.cxx |
19 |
+++ b/sw/source/ui/shells/langhelper.cxx |
20 |
@@ -573,7 +573,8 @@ namespace SwLangHelper |
21 |
// string for guessing language |
22 |
OUString aText; |
23 |
|
24 |
- aText = rEditEngine->GetText(aDocSelection); |
25 |
+ // get the full text of the paragraph that the end of selection is in |
26 |
+ aText = rEditEngine->GetText(aDocSelection.nEndPos); |
27 |
if (!aText.isEmpty()) |
28 |
{ |
29 |
xub_StrLen nStt = 0; |
30 |
-- |
31 |
1.9.0 |
32 |
|