diff options
author | Noel Power <noel.power@novell.com> | 2011-03-02 12:24:11 +0000 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2011-03-02 18:49:30 +0000 |
commit | 28d4e54c129971b7900e88ba3113d3bfd2742232 (patch) | |
tree | 27783a9572d8a9a8cd4d0e62e400535545cf2746 | |
parent | 64091fc01dad65f9428caa273e070f7b2c277f9f (diff) |
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@free.fr>
-rw-r--r-- | sw/source/core/crsr/bookmrk.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/core/crsr/bookmrk.cxx b/sw/source/core/crsr/bookmrk.cxx index 596c5d6c78ef..228ee38b5210 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 ) |