[Libreoffice-commits] .: sw/source
Cédric Bosdonnat
cbosdo at kemper.freedesktop.org
Wed Jan 4 11:44:16 PST 2012
sw/source/core/crsr/crsrsh.cxx | 15 +++++++++++++++
1 file changed, 15 insertions(+)
New commits:
commit fef489ad0f1f14bd9f018552c47a93a80e8b353d
Author: Cédric Bosdonnat <cedric.bosdonnat.ooo at free.fr>
Date: Wed Jan 4 20:42:17 2012 +0100
Header/Footer: switch cursor between header and footer using the cursor
This fixes commit cce76e658af88813e17dea4f04388a29d7e582df.
diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx
index 0d1efa3..049a867 100644
--- a/sw/source/core/crsr/crsrsh.cxx
+++ b/sw/source/core/crsr/crsrsh.cxx
@@ -1317,6 +1317,21 @@ void SwCrsrShell::UpdateCrsr( sal_uInt16 eFlags, sal_Bool bIdleEnd )
if ( IsInHeaderFooter() != IsHeaderFooterEdit() )
ToggleHeaderFooterEdit();
+ sal_Bool bInHeader= sal_True;
+ if ( IsInHeaderFooter( &bInHeader ) )
+ {
+ if ( IsShowHeaderFooterSeparator( Header ) && !bInHeader )
+ {
+ SetShowHeaderFooterSeparator( Footer, true );
+ SetShowHeaderFooterSeparator( Header, false );
+ }
+ else if ( IsShowHeaderFooterSeparator( Footer ) && bInHeader )
+ {
+ SetShowHeaderFooterSeparator( Header, true );
+ SetShowHeaderFooterSeparator( Footer, false );
+ }
+ }
+
// #i27301#
SwNotifyAccAboutInvalidTextSelections aInvalidateTextSelections( *this );
More information about the Libreoffice-commits
mailing list