From 06f1272adec1c434d311cc59fc8bc247a9d80d2f Mon Sep 17 00:00:00 2001 From: Katarina Behrens Date: Mon, 18 May 2015 17:34:06 +0200 Subject: [PATCH] Fix build (use correct text field UNO type) Change-Id: I55725910c6882b9664c7490a865e9220fbb5c5d6 --- sd/source/ui/unoidl/unomodel.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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" )