[Libreoffice-commits] .: Branch 'libreoffice-3-3' - sw/source

Noel Power noelp at kemper.freedesktop.org
Wed Mar 2 10:52:16 PST 2011


 sw/source/core/crsr/bookmrk.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 39cf47bb37d17c1e37c2155385afa704c13684f9
Author: Noel Power <noel.power at novell.com>
Date:   Wed Mar 2 12:24:11 2011 +0000

    minor tweak to existing fix for ( bnc#660816 & fdo#34908
    
    it seems the orig commit ( af4d6062b7e676ed56dc84927fb99b79aa03a7b5 ) when tweaked for libreoffice3.3 had a little mistake introduced ( which then go ported into master )
    
    Signed-off-by: Cédric Bosdonnat <cedric.bosdonnat.ooo at free.fr>

diff --git a/sw/source/core/crsr/bookmrk.cxx b/sw/source/core/crsr/bookmrk.cxx
index 0641e96..1f9f14a 100644
--- a/sw/source/core/crsr/bookmrk.cxx
+++ b/sw/source/core/crsr/bookmrk.cxx
@@ -335,10 +335,9 @@ namespace sw { namespace mark
     }
     void CheckboxFieldmark::SetChecked(bool checked)
     {
-        (*GetParameters())[::rtl::OUString::createFromAscii(ODF_FORMCHECKBOX_RESULT)] = makeAny(checked);
-        bool bOld( IsChecked() );
-        if ( bOld != checked )
+        if ( IsChecked() != checked )
         {
+            (*GetParameters())[::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(ODF_FORMCHECKBOX_RESULT))] = makeAny(checked);
             // mark document as modified
             SwDoc *const pDoc( GetMarkPos().GetDoc() );
             if ( pDoc )


More information about the Libreoffice-commits mailing list