diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-12-04 18:19:07 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-12-04 18:30:52 +0400 |
commit | 44ee3ce747058eaf7ca241fe482f4aab54c9bc92 (patch) | |
tree | a6af23005477db4d8b5804c6743eea37cdce7ee6 /svx | |
parent | 03dc19955cbf3d302e9b7621f135f1e1bf949cca (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
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/tbxctrls/linectrl.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/svx/source/tbxctrls/linectrl.cxx b/svx/source/tbxctrls/linectrl.cxx index d14e53908c5b..60f487e0850f 100644 --- a/svx/source/tbxctrls/linectrl.cxx +++ b/svx/source/tbxctrls/linectrl.cxx @@ -33,6 +33,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; @@ -157,7 +158,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 |