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


Sorry here is the patch.

On Wed, Jun 1, 2011 at 1:18 PM, jeffrey chang <jeffdchang@gmail.com> wrote:

Hi,

I am new to the LibreOffice community. I know that 34786 has been posted
for awhile, but no one seems to have claimed the bug and the error was still
reproducible in writer so I decided to take up the bug as my first EasyHack.
I seemed to have fixed the problem of deleting to the beginning of the
sentence by making a simple change in wrtsh4.cxx (See Patch). After
re-making sw and testing in writer the problem seems fixed. The patch is on
LO version 3.4.0.2 because one of the recent masters that I pulled was
unstable.

Thanks,
--
--Jeffrey Chang




-- 
--Jeffrey Chang
From 852d8c68d95b0644a3c10e7b417ab0b9a7330e6a Mon Sep 17 00:00:00 2001
From: jeffrey <jeffrey@linux-ow08.site>
Date: Wed, 1 Jun 2011 23:22:17 +0800
Subject: [PATCH] Made changes to fix sentence delete in bug 34786.

---
 sw/source/ui/wrtsh/wrtsh4.cxx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sw/source/ui/wrtsh/wrtsh4.cxx b/sw/source/ui/wrtsh/wrtsh4.cxx
index 9469ff2..f455338 100644
--- a/sw/source/ui/wrtsh/wrtsh4.cxx
+++ b/sw/source/ui/wrtsh/wrtsh4.cxx
@@ -235,7 +235,7 @@ sal_Bool SwWrtShell::_BwdSentence()
         Pop();
         return 1;
     }
-    if( !GoPrevSentence()  && !IsSttPara() )
+    if( !GoStartSentence()  && !IsSttPara() )
             // nicht gefunden --> an den Absatz Anfang
         SwCrsrShell::MovePara( fnParaCurr, fnParaStart );
     ClearMark();
-- 
1.7.3.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.