summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2012-12-04 18:19:07 +0400
committerCaolán McNamara <caolanm@redhat.com>2012-12-06 14:22:37 +0000
commitee1d26740fbd8e9c9d6c1ee7e493f136c25b038c (patch)
tree131dcc7e6bcc98e8fb3c75f1ced09183ab8cd0ad /svx
parent44dafcf9e29b2286016b9be2ac47c2609c817abc (diff)
fdo#40339: line style toolbar dropdown list not updated
... because XLineDashItem::GetName returns the so-called "api name" (from RID_SVXSTR_DASH_DEF_START..RID_SVXSTR_DASH_DEF_END range), while the listbox is filled with corresponding translated names. Change-Id: I9edeeee6f6219f2b31fb02c24c70f3fef4f0efcb (cherry picked from commit 44ee3ce747058eaf7ca241fe482f4aab54c9bc92) Reviewed-on: https://gerrit.libreoffice.org/1238 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/tbxctrls/linectrl.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/svx/source/tbxctrls/linectrl.cxx b/svx/source/tbxctrls/linectrl.cxx
index 0b75ce7d927e..e1c7670c59d6 100644
--- a/svx/source/tbxctrls/linectrl.cxx
+++ b/svx/source/tbxctrls/linectrl.cxx
@@ -45,6 +45,7 @@
#include "svx/linectrl.hxx"
#include <svx/itemwin.hxx>
#include <svx/dialmgr.hxx>
+#include <svx/unoapi.hxx>
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
@@ -169,7 +170,9 @@ void SvxLineStyleToolBoxControl::Update( const SfxPoolItem* pState )
{
if( pDashItem )
{
- String aString( pDashItem->GetName() );
+ String aString;
+ SvxUnogetInternalNameForItem(
+ XATTR_LINEDASH, pDashItem->GetName(), aString );
pBox->SelectEntry( aString );
}
else