Kaydet (Commit) bb3a290e authored tarafından David Tardon's avatar David Tardon

rhbz#994886 update unit in draw. obj. props toolbar

I am not sure this is the only/correct way to do it (maybe it should be
already handled by some broadcast from SFX_APP()->SetOptions()), but it
is what Draw and Calc do (cf. handling of SID_ATTR_METRIC in
SdModule::ApplyItemSet() and ScModule::ModifyOptions()).

Change-Id: I25bada60188a96c6c82db5029c7475b45b595176
üst 988036c3
......@@ -296,6 +296,7 @@ void SwModule::ApplyItemSet( sal_uInt16 nId, const SfxItemSet& rSet )
if( SFX_ITEM_SET == rSet.GetItemState(SID_ATTR_METRIC, sal_False, &pItem ) )
{
SFX_APP()->SetOptions(rSet);
PutItem(*pItem);
const SfxUInt16Item* pMetricItem = (const SfxUInt16Item*)pItem;
::SetDfltMetric((FieldUnit)pMetricItem->GetValue(), !bTextDialog);
}
......
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