Skip to content

Commit

Permalink
Merge pull request #6226 from unoplatform/mergify/bp/release/stable/3…
Browse files Browse the repository at this point in the history
….8/pr-6220

fix(calendar): Fix few C++ translation issues (backport #6220)
  • Loading branch information
jeromelaban authored Jun 10, 2021
2 parents 5993df8 + 03c3952 commit 1c03259
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ private void HasIrregularSnapPointsImpl(
out bool returnValue) /*override*/
{
returnValue = false;
returnValue = !!_layoutStrategyImpl.HasIrregularSnapPoints(elementType);
returnValue = _layoutStrategyImpl.HasIrregularSnapPoints(elementType);
}

private void HasSnapPointOnElementImpl(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ internal virtual void PrepareItemContainer(

isTodayHighlighted = Owner.IsTodayHighlighted;

isToday = !!isTodayHighlighted;
isToday = isTodayHighlighted;
}

spContainer.SetIsToday(isToday);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ internal override void PrepareItemContainer(

isLabelVisible = Owner.IsGroupLabelVisible;

UpdateLabel(spContainer, !isLabelVisible);
UpdateLabel(spContainer, isLabelVisible);
}

// today state will be updated in CalendarViewGeneratorHost.PrepareItemContainer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ internal override void PrepareItemContainer(

isLabelVisible = Owner.IsGroupLabelVisible;

UpdateLabel(spContainer, !isLabelVisible);
UpdateLabel(spContainer, isLabelVisible);
}

// today state will be updated in CalendarViewGeneratorHost.PrepareItemContainer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2004,7 +2004,7 @@ private void OnIsTodayHighlightedPropertyChanged()
bool isTodayHighlighted = false;
isTodayHighlighted = IsTodayHighlighted;
((CalendarViewBaseItem)spChildAsI).SetIsToday(!isTodayHighlighted);
((CalendarViewBaseItem)spChildAsI).SetIsToday(isTodayHighlighted);
}
}
}
Expand All @@ -2021,7 +2021,7 @@ private void OnIsOutOfScopePropertyChanged()
// when IsOutOfScopeEnabled property is false, we don't care about scope state (all are inScope),
// so we don't need to hook to ScrollViewer's state change handler.
// when IsOutOfScopeEnabled property is true, we need to do so.
if (m_areDirectManipulationStateChangeHandlersHooked != !isOutOfScopeEnabled)
if (m_areDirectManipulationStateChangeHandlersHooked != isOutOfScopeEnabled)
{
m_areDirectManipulationStateChangeHandlersHooked = !m_areDirectManipulationStateChangeHandlersHooked;

Expand Down Expand Up @@ -2252,7 +2252,7 @@ private void OnIsLabelVisibleChanged()
ForeachChildInPanel(pPanel,
(CalendarViewBaseItem pItem) =>
{
pHost.UpdateLabel(pItem, !isLabelVisible);
pHost.UpdateLabel(pItem, isLabelVisible);
});
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ internal void IsSelected(DateTime date, out bool pIsSelected)

found = m_tpSelectedDates.IndexOf(date, out index);

pIsSelected = !!found;
pIsSelected = found;

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ internal static void OnKeyDownImpl(
}
}

pEventArgs.Handled = !!focusChanged;
pEventArgs.Handled = focusChanged;
}

return;
Expand Down

0 comments on commit 1c03259

Please sign in to comment.