reportdesign/source/ui/dlg/Navigator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 48b1fdf31f2fd4e9de47bda40e58cde7be9bc94d Author: Vinit Agarwal <agarwalvinit5...@gmail.com> AuthorDate: Fri Mar 10 13:07:22 2023 +0530 Commit: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> CommitDate: Sun Mar 19 08:00:54 2023 +0000 tdf#114441 - Convert use of sal_uLong to better integer types. In reportdesign/source/ui/dlg/Navigator.cxx Updated type of nPos at Line number 574 to int as it would be either 1 or 2 depending on the ternary evaluation Change-Id: If2bf75ddfb66b518fec109757f32dd6e4a8b77dd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148600 Tested-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> diff --git a/reportdesign/source/ui/dlg/Navigator.cxx b/reportdesign/source/ui/dlg/Navigator.cxx index 2c4512470733..90cc2dc0d45b 100644 --- a/reportdesign/source/ui/dlg/Navigator.cxx +++ b/reportdesign/source/ui/dlg/Navigator.cxx @@ -571,7 +571,7 @@ void NavigatorTree::_propertyChanged(const beans::PropertyChangeEvent& _rEvent) xParent.reset(); if ( _rEvent.PropertyName == PROPERTY_REPORTHEADERON ) { - sal_uLong nPos = xReport->getReportHeaderOn() ? 2 : 1; + int nPos = xReport->getReportHeaderOn() ? 2 : 1; traverseSection(xReport->getReportHeader(),xParent.get(),RID_SVXBMP_REPORTHEADERFOOTER,nPos); } else if ( _rEvent.PropertyName == PROPERTY_PAGEHEADERON )