Kaydet (Commit) 921ae49c authored tarafından Caolán McNamara's avatar Caolán McNamara

restore RemoveItem mnHighItemId handling

Change-Id: I9aa094d50f7bc52fd379fa2e315037b81bb53df2
Reviewed-on: https://gerrit.libreoffice.org/61796Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst e080f70e
......@@ -2706,9 +2706,10 @@ void SvtValueSet::RemoveItem( sal_uInt16 nItemId )
}
// reset variables
if (mnSelItemId == nItemId)
if (mnHighItemId == nItemId || mnSelItemId == nItemId)
{
mnCurCol = 0;
mnHighItemId = 0;
mnSelItemId = 0;
mbNoSelection = true;
}
......@@ -2727,11 +2728,12 @@ void SvtValueSet::Clear()
// reset variables
mnFirstLine = 0;
mnCurCol = 0;
mnHighItemId = 0;
mnSelItemId = 0;
mbNoSelection = true;
mbFormat = true;
if (IsReallyVisible() && IsUpdateMode())
if ( IsReallyVisible() && IsUpdateMode() )
Invalidate();
}
......@@ -3603,7 +3605,7 @@ void SvtValueSet::SetColCount( sal_uInt16 nNewCols )
mnUserCols = nNewCols;
mbFormat = true;
queue_resize();
if ( IsReallyVisible() && IsUpdateMode() )
if (IsReallyVisible() && IsUpdateMode())
Invalidate();
}
}
......
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