diff options
Diffstat (limited to 'sc/source/ui/view/drawvie3.cxx')
-rw-r--r-- | sc/source/ui/view/drawvie3.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sc/source/ui/view/drawvie3.cxx b/sc/source/ui/view/drawvie3.cxx index 964fb14527bd..ed701a2d62ab 100644 --- a/sc/source/ui/view/drawvie3.cxx +++ b/sc/source/ui/view/drawvie3.cxx @@ -87,6 +87,10 @@ void ScDrawView::SetPageAnchored() if ( pViewData ) pViewData->GetDocShell()->SetDrawModified(); + + // Remove the anchor object. + aHdl.RemoveAllByKind(HDL_ANCHOR); + aHdl.RemoveAllByKind(HDL_ANCHOR_TR); } } @@ -108,6 +112,9 @@ void ScDrawView::SetCellAnchored() if ( pViewData ) pViewData->GetDocShell()->SetDrawModified(); + + // Set the anchor object. + AddCustomHdl(); } } |