Kaydet (Commit) 21dde7a0 authored tarafından Caolán McNamara's avatar Caolán McNamara

Related: tdf#112395 disabled slot with Put leaks entry

Change-Id: I326424551c280140db03b4c92ef450cc04f18813
Reviewed-on: https://gerrit.libreoffice.org/43040Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 4437d842
......@@ -268,30 +268,28 @@ void SwView::StateViewOptions(SfxItemSet &rSet)
aBool.SetValue( SwViewOption::IsTableBoundaries() ); break;
case SID_TOGGLE_NOTES:
{
aBool.SetValue( pOpt->IsPostIts());
if (!GetPostItMgr()->HasNotes())
{
aBool.SetWhich( nWhich );
rSet.Put( aBool );
rSet.DisableItem(nWhich);
nWhich = 0;
}
else
aBool.SetValue( pOpt->IsPostIts());
break;
}
case FN_VIEW_HIDDEN_PARA:
aBool.SetValue( pOpt->IsShowHiddenPara()); break;
case FN_VIEW_HIDE_WHITESPACE:
{
if (pOpt->getBrowseMode() ||
!pOpt->CanHideWhitespace())
if (pOpt->getBrowseMode() || !pOpt->CanHideWhitespace())
{
rSet.DisableItem(nWhich);
nWhich = 0;
}
else
aBool.SetValue(pOpt->IsHideWhitespaceMode());
}
break;
}
case SID_GRID_VISIBLE:
aBool.SetValue( pOpt->IsGridVisible() ); break;
case SID_GRID_USE:
......
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