Hello all,

Attached patch is a fix for fdo#30550 in comment 11-12
This is specific to -3-3 only, because it was later fixed in -3-4 and
master by 
http://cgit.freedesktop.org/libreoffice/writer/commit/?id=335534df4946437a12cd3c18b4a24beee188317b
by John LeMoyne Castle, but not in -3-3.
So, it would be good to have it in -3-3 and/or 3-3-4.

Thanks again for Petr, Michael, and Caolán, who make my build and
debug successful. :-)

Please feel free to comment.
Best Regards,
--
Korrawit Pruegsanusak
From a2baa5016abf76f2a4ecf165db6b9379badcc963 Mon Sep 17 00:00:00 2001
From: Korrawit Pruegsanusak <detective.conan.1...@gmail.com>
Date: Wed, 22 Jun 2011 00:30:51 +0700
Subject: [PATCH] Fix for fdo#30550

This patch is a fix for fdo#30550 in comment 11-12.
Instantiating aScanner should set bClip to be true. This will execute line #792 of this file and make boundary correct.

Released under LGPLv3+/MPL
---
 sw/source/core/txtnode/txtedt.cxx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx
index cc03200..a7a2182 100644
--- a/sw/source/core/txtnode/txtedt.cxx
+++ b/sw/source/core/txtnode/txtedt.cxx
@@ -1908,7 +1908,7 @@ void SwTxtNode::CountWords( SwDocStat& rStat,
                     const String aScannerText( aExpandText );
                     SwScanner aScanner( *this, aScannerText, 0, pConversionMap,
                                         i18n::WordType::WORD_COUNT,
-                                        (xub_StrLen)nExpandBegin, (xub_StrLen)nExpandEnd );
+                                        (xub_StrLen)nExpandBegin, (xub_StrLen)nExpandEnd, true );
 
                     const rtl::OUString aBreakWord( CH_TXTATR_BREAKWORD );
 
-- 
1.7.0.4

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to