diff options
-rw-r--r-- | include/vcl/commandevent.hxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/viewshel.cxx | 2 | ||||
-rw-r--r-- | vcl/source/control/imivctl1.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/vcl/commandevent.hxx b/include/vcl/commandevent.hxx index fc6ba290793f..9491137acea8 100644 --- a/include/vcl/commandevent.hxx +++ b/include/vcl/commandevent.hxx @@ -139,7 +139,7 @@ enum class CommandWheelMode }; // Magic value used in mnLines field in CommandWheelData -#define COMMAND_WHEEL_PAGESCROLL (sal_uLong(0xFFFFFFFF)) +#define COMMAND_WHEEL_PAGESCROLL (double(0xFFFFFFFF)) class VCL_DLLPUBLIC CommandWheelData { diff --git a/sd/source/ui/view/viewshel.cxx b/sd/source/ui/view/viewshel.cxx index d4007eb77510..91fa6a2e4b53 100644 --- a/sd/source/ui/view/viewshel.cxx +++ b/sd/source/ui/view/viewshel.cxx @@ -736,7 +736,7 @@ bool ViewShell::HandleScrollCommand(const CommandEvent& rCEvt, ::sd::Window* pWi { if( mpContentWindow.get() == pWin ) { - sal_uLong nScrollLines = pData->GetScrollLines(); + double nScrollLines = pData->GetScrollLines(); if(IsPageFlipMode()) nScrollLines = COMMAND_WHEEL_PAGESCROLL; CommandWheelData aWheelData( pData->GetDelta(),pData->GetNotchDelta(), diff --git a/vcl/source/control/imivctl1.cxx b/vcl/source/control/imivctl1.cxx index ae297a82e107..1364dc4f44d0 100644 --- a/vcl/source/control/imivctl1.cxx +++ b/vcl/source/control/imivctl1.cxx @@ -1844,7 +1844,7 @@ bool SvxIconChoiceCtrl_Impl::HandleScrollCommand( const CommandEvent& rCmd ) const CommandWheelData* pData = rCmd.GetWheelData(); if( pData && (CommandWheelMode::SCROLL == pData->GetMode()) && !pData->IsHorz() ) { - sal_uLong nScrollLines = pData->GetScrollLines(); + double nScrollLines = pData->GetScrollLines(); if( nScrollLines == COMMAND_WHEEL_PAGESCROLL ) { nScrollDY = GetScrollBarPageSize( aVisSize.Width() ); |