diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-12-09 16:31:30 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-12-09 16:34:26 -0500 |
commit | 4345b5cb72980dc351147da77505ed06a93028ab (patch) | |
tree | c7489ee31a182e25dbd2bce09fc1b566677fc2ce /sc/source/ui/view/drawvie3.cxx | |
parent | 25180de75711cdf10b32a2997a23f201e1dd877f (diff) |
fdo#38545: Show/hide anchor when the anchoring status changes.
Setting a page-anchored object to cell-anchored didn't show the anchor
immediately until you unselect the object and re-select it. Same for
the cell-anchored to page-anchored direction.
This commit fixes it.
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(); } } |