Skip to content

Commit

Permalink
-fsanitize=vptr: SID_ATTR_*LANGUAGE are of type SvxLanguageItem
Browse files Browse the repository at this point in the history
Change-Id: If00273e3836aeb70adee36f49f0ef502b6a7aebb
  • Loading branch information
stbergmann committed Jun 26, 2015
1 parent 4091b4f commit b15019d
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions cui/source/options/treeopt.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1252,11 +1252,23 @@ SfxItemSet* OfaTreeOptionsDialog::CreateItemSet( sal_uInt16 nId )
const SfxPoolItem* pItem = NULL;
SfxDispatcher* pDispatch = pViewFrame->GetDispatcher();
if(SfxItemState::DEFAULT <= pDispatch->QueryState(SID_ATTR_LANGUAGE, pItem))
pRet->Put(SfxUInt16Item(SID_ATTR_LANGUAGE, static_cast<const SvxLanguageItem*>(pItem)->GetLanguage()));
pRet->Put(
SvxLanguageItem(
(static_cast<const SvxLanguageItem*>(pItem)
->GetLanguage()),
SID_ATTR_LANGUAGE));
if(SfxItemState::DEFAULT <= pDispatch->QueryState(SID_ATTR_CHAR_CJK_LANGUAGE, pItem))
pRet->Put(SfxUInt16Item(SID_ATTR_CHAR_CJK_LANGUAGE, static_cast<const SvxLanguageItem*>(pItem)->GetLanguage()));
pRet->Put(
SvxLanguageItem(
(static_cast<const SvxLanguageItem*>(pItem)
->GetLanguage()),
SID_ATTR_CHAR_CJK_LANGUAGE));
if(SfxItemState::DEFAULT <= pDispatch->QueryState(SID_ATTR_CHAR_CTL_LANGUAGE, pItem))
pRet->Put(SfxUInt16Item(SID_ATTR_CHAR_CTL_LANGUAGE, static_cast<const SvxLanguageItem*>(pItem)->GetLanguage()));
pRet->Put(
SvxLanguageItem(
(static_cast<const SvxLanguageItem*>(pItem)
->GetLanguage()),
SID_ATTR_CHAR_CTL_LANGUAGE));

pRet->Put(aHyphen);
if(SfxItemState::DEFAULT <= pDispatch->QueryState(SID_AUTOSPELL_CHECK, pItem))
Expand Down

0 comments on commit b15019d

Please sign in to comment.