Kaydet (Commit) ea4a47d7 authored tarafından Noel Grandin's avatar Noel Grandin

fix bugs in StateView_Impl and TransformItems

where it was only incrementing the pointer once, meaning it was not
iterating in pairs

Change-Id: I26cc9b4262bc869c72231ef9eabca2d29da0a724
Reviewed-on: https://gerrit.libreoffice.org/44462Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 4be2af1e
......@@ -1085,7 +1085,9 @@ void TransformItems( sal_uInt16 nSlotId, const SfxItemSet& rSet, uno::Sequence<b
const sal_uInt16 *pRanges = rSet.GetRanges();
while ( *pRanges )
{
for(sal_uInt16 nId = *pRanges++; nId <= *pRanges; ++nId)
sal_uInt16 nStartWhich = *pRanges++;
sal_uInt16 nEndWhich = *pRanges++;
for(sal_uInt16 nId = nStartWhich; nId <= nEndWhich; ++nId)
{
if ( rSet.GetItemState(nId) < SfxItemState::SET ) //???
// not really set
......
......@@ -2158,7 +2158,9 @@ void SfxViewFrame::StateView_Impl
assert(pRanges && "Set with no Range");
while ( *pRanges )
{
for ( sal_uInt16 nWhich = *pRanges++; nWhich <= *pRanges; ++nWhich )
sal_uInt16 nStartWhich = *pRanges++;
sal_uInt16 nEndWhich = *pRanges++;
for ( sal_uInt16 nWhich = nStartWhich; nWhich <= nEndWhich; ++nWhich )
{
switch(nWhich)
{
......
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