diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-08-18 09:50:33 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-08-18 09:50:33 +0000 |
commit | fc31012230e0c76e68529b7ffb55c0c4a0c74853 (patch) | |
tree | 5d63a68de17da8a4fdfe09c7e50a08c2ce8644d6 /sw/source/ui/shells | |
parent | b3b5f11f655a78cb30aff8d84d3a29c4bf5d26bb (diff) |
INTEGRATION: CWS mav35 (1.62.176); FILE MERGED
2008/07/30 11:06:50 ama 1.62.176.1: Fix #i92219#: Show handles
Diffstat (limited to 'sw/source/ui/shells')
-rw-r--r-- | sw/source/ui/shells/textsh.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sw/source/ui/shells/textsh.cxx b/sw/source/ui/shells/textsh.cxx index a6b9160822..98c8ae6820 100644 --- a/sw/source/ui/shells/textsh.cxx +++ b/sw/source/ui/shells/textsh.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: textsh.cxx,v $ - * $Revision: 1.62 $ + * $Revision: 1.63 $ * * This file is part of OpenOffice.org. * @@ -574,6 +574,7 @@ void SwTextShell::ExecInsert(SfxRequest &rReq) aStartPos.X() -= 8 * MM50; aStartPos.Y() -= 4 * MM50; Size aSize(16 * MM50, 8 * MM50); + GetShell().LockPaint(); GetShell().StartAllAction(); SwFlyFrmAttrMgr aMgr( TRUE, GetShellPtr(), FRMMGR_TYPE_TEXT ); if(nCols > 1) @@ -584,6 +585,7 @@ void SwTextShell::ExecInsert(SfxRequest &rReq) } aMgr.InsertFlyFrm(FLY_AT_CNTNT, aStartPos, aSize); GetShell().EndAllAction(); + GetShell().UnlockPaint(); } else { @@ -634,11 +636,13 @@ void SwTextShell::ExecInsert(SfxRequest &rReq) } } + GetShell().LockPaint(); GetShell().StartAllAction(); aMgr.InsertFlyFrm(eAnchor, aPos, aSize); GetShell().EndAllAction(); + GetShell().UnlockPaint(); } else { @@ -684,6 +688,7 @@ void SwTextShell::ExecInsert(SfxRequest &rReq) DBG_ASSERT(pDlg, "Dialogdiet fail!"); if(pDlg->Execute() && pDlg->GetOutputItemSet()) { + GetShell().LockPaint(); GetShell().StartAllAction(); GetShell().StartUndo(UNDO_INSERT); @@ -718,6 +723,7 @@ void SwTextShell::ExecInsert(SfxRequest &rReq) GetShell().EndUndo(UNDO_INSERT, &aRewriter); } GetShell().EndAllAction(); + GetShell().UnlockPaint(); } DELETEZ(pDlg); |