summaryrefslogtreecommitdiff
path: root/sw/source/ui/frmdlg/cption.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/frmdlg/cption.cxx')
-rw-r--r--sw/source/ui/frmdlg/cption.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/ui/frmdlg/cption.cxx b/sw/source/ui/frmdlg/cption.cxx
index 292ac69838a2..e0f82eea8211 100644
--- a/sw/source/ui/frmdlg/cption.cxx
+++ b/sw/source/ui/frmdlg/cption.cxx
@@ -41,6 +41,7 @@
#include <strings.hrc>
#include <SwStyleNameMapper.hxx>
#include <unotxdoc.hxx>
+#include <names.hxx>
using namespace ::com::sun::star;
@@ -191,7 +192,7 @@ SwCaptionDialog::SwCaptionDialog(weld::Window *pParent, SwView &rV)
if( nPoolId )
{
if (sString.isEmpty())
- sString = SwStyleNameMapper::GetUIName(nPoolId, OUString());
+ sString = SwStyleNameMapper::GetUIName(nPoolId, ProgName());
auto nIndex = m_xCategoryBox->find_text(sString);
if (nIndex != -1)
m_xCategoryBox->set_active(nIndex);