diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index f73d991de262..5190351cc714 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -931,10 +931,10 @@ css::uno::Reference SdXImpressDocument::create( return (::cppu::OWeakObject * )new SvxUnoTextField( text::textfield::Type::PRESENTATION_DATE_TIME ); } - if( aServiceSpecifier == "com.sun.star.presentation.TextField.PageTitle" || - aServiceSpecifier == "com.sun.star.presentation.textfield.PageTitle" ) + if( aServiceSpecifier == "com.sun.star.text.TextField.PageName" || + aServiceSpecifier == "com.sun.star.text.textfield.PageName" ) { - return (::cppu::OWeakObject * )new SvxUnoTextField( text::textfield::Type::PRESENTATION_PAGE_TITLE ); + return (::cppu::OWeakObject * )new SvxUnoTextField( text::textfield::Type::PAGE_NAME ); } if( aServiceSpecifier == "com.sun.star.xml.NamespaceMap" )