diff options
Diffstat (limited to 'sw/source/uibase/app/docst.cxx')
-rw-r--r-- | sw/source/uibase/app/docst.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/uibase/app/docst.cxx b/sw/source/uibase/app/docst.cxx index 1fe54effc43b..ca6c7eaa8d60 100644 --- a/sw/source/uibase/app/docst.cxx +++ b/sw/source/uibase/app/docst.cxx @@ -86,6 +86,7 @@ #include <svx/svdpage.hxx> #include <officecfg/Office/Common.hxx> #include <fmtfsize.hxx> +#include <names.hxx> #include <svl/ptitem.hxx> #include <editeng/sizeitem.hxx> #include <editeng/ulspitem.hxx> @@ -176,7 +177,7 @@ void SwDocShell::StateStyleSheet(SfxItemSet& rSet, SwWrtShell* pSh) case SID_STYLE_FAMILY2: if(!pShell->IsFrameSelected()) { - OUString aProgName; + ProgName aProgName; if (pShell->GetSelectionType() == SelectionType::PostIt) { OutlinerView *pOLV = lcl_GetPostItOutlinerView(*pShell); @@ -193,7 +194,7 @@ void SwDocShell::StateStyleSheet(SfxItemSet& rSet, SwWrtShell* pSh) SwStyleNameMapper::FillProgName(nId, aProgName); } - SfxTemplateItem aItem(nWhich, aName, aProgName); + SfxTemplateItem aItem(nWhich, aName, aProgName.toString()); SfxStyleSearchBits nMask = SfxStyleSearchBits::Auto; if (m_xDoc->getIDocumentSettingAccess().get(DocumentSettingId::HTML_MODE)) |