[Libreoffice-commits] .: sw/source

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Tue Jul 5 09:03:42 PDT 2011


 sw/source/core/crsr/crsrsh.cxx |    2 --
 sw/source/ui/docvw/edtwin.cxx  |    2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 144d9ac941c532dcc86b80f80a5960be234bba19
Author: Cédric Bosdonnat <cedric.bosdonnat.ooo at free.fr>
Date:   Tue Jul 5 18:01:56 2011 +0200

    Header/Footer: When double-clicking, set the crsr to the clicked position

diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx
index 75ccd21..81dcb50 100644
--- a/sw/source/core/crsr/crsrsh.cxx
+++ b/sw/source/core/crsr/crsrsh.cxx
@@ -3466,8 +3466,6 @@ void SwCrsrShell::ToggleHeaderFooterEdit( )
             pCrsrBack->SetMark();
             *pCrsrBack->GetMark() = *pCurCrsr->GetMark();
         }
-
-        SetCrsrInHdFt();
     }
     else
     {
diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx
index c3839fc..dab975d 100644
--- a/sw/source/ui/docvw/edtwin.cxx
+++ b/sw/source/ui/docvw/edtwin.cxx
@@ -2607,7 +2607,7 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt)
          ( !rSh.IsHeaderFooterEdit() && bOverHdrFtr ) )
     {
         if ( rMEvt.GetButtons() == MOUSE_LEFT && rMEvt.GetClicks( ) == 2 )
-            rSh.ToggleHeaderFooterEdit( );
+            rSh.SwCrsrShell::SetCrsr( aDocPos );
 
         return;
     }


More information about the Libreoffice-commits mailing list