svx/source/tbxctrls/linectrl.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit 44ee3ce747058eaf7ca241fe482f4aab54c9bc92 Author: Ivan Timofeev <timofeev....@gmail.com> Date: Tue Dec 4 18:19:07 2012 +0400 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 diff --git a/svx/source/tbxctrls/linectrl.cxx b/svx/source/tbxctrls/linectrl.cxx index d14e539..60f487e 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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits