Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


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.1412@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


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.