summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdundo.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/svdraw/svdundo.cxx')
-rw-r--r--svx/source/svdraw/svdundo.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/svx/source/svdraw/svdundo.cxx b/svx/source/svdraw/svdundo.cxx
index 1362de30b4d7..0f5c6ab352a1 100644
--- a/svx/source/svdraw/svdundo.cxx
+++ b/svx/source/svdraw/svdundo.cxx
@@ -247,11 +247,7 @@ void SdrUndoObj::ImpShowPageOfThisObject()
{
if(pObj && pObj->IsInserted() && pObj->GetPage() && pObj->GetModel())
{
- SdrHint aHint(HINT_SWITCHTOPAGE);
-
- aHint.SetObject(pObj);
- aHint.SetPage(pObj->GetPage());
-
+ SdrHint aHint(SdrHintKind::SwitchToPage, *pObj, pObj->GetPage());
pObj->GetModel()->Broadcast(aHint);
}
}