Kaydet (Commit) 44ee3ce7 authored tarafından Ivan Timofeev's avatar Ivan Timofeev

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
üst 03dc1995
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include "svx/linectrl.hxx" #include "svx/linectrl.hxx"
#include <svx/itemwin.hxx> #include <svx/itemwin.hxx>
#include <svx/dialmgr.hxx> #include <svx/dialmgr.hxx>
#include <svx/unoapi.hxx>
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans; using namespace ::com::sun::star::beans;
...@@ -157,7 +158,9 @@ void SvxLineStyleToolBoxControl::Update( const SfxPoolItem* pState ) ...@@ -157,7 +158,9 @@ void SvxLineStyleToolBoxControl::Update( const SfxPoolItem* pState )
{ {
if( pDashItem ) if( pDashItem )
{ {
String aString( pDashItem->GetName() ); String aString;
SvxUnogetInternalNameForItem(
XATTR_LINEDASH, pDashItem->GetName(), aString );
pBox->SelectEntry( aString ); pBox->SelectEntry( aString );
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment