summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-24 13:51:27 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2014-04-29 18:55:22 +0000
commit6554b637136febc19e0640f6292609fc7b37ad5f (patch)
treecb2fa24875352f243a61e38cf2168d16b5a76533
parenta94870445dea1bdd269d675386bbc836139eaeb7 (diff)
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@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> (cherry picked from commit f609515bbd0fda93fa8acd6d9c553f974fc9c03b) Reviewed-on: https://gerrit.libreoffice.org/9149 Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
-rw-r--r--sw/source/ui/shells/langhelper.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/ui/shells/langhelper.cxx b/sw/source/ui/shells/langhelper.cxx
index d3055a297f95..52ca7703585a 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;