diff options
Diffstat (limited to 'vcl/source/window/dialog.cxx')
-rw-r--r-- | vcl/source/window/dialog.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx index c87ed80c9533..e4aa836ffc18 100644 --- a/vcl/source/window/dialog.cxx +++ b/vcl/source/window/dialog.cxx @@ -310,13 +310,13 @@ static PushButton* ImplGetCancelButton( Dialog* pDialog ) static void ImplMouseAutoPos( Dialog* pDialog ) { - sal_uLong nMouseOptions = pDialog->GetSettings().GetMouseSettings().GetOptions(); - if ( nMouseOptions & MOUSE_OPTION_AUTOCENTERPOS ) + MouseSettingsOptions nMouseOptions = pDialog->GetSettings().GetMouseSettings().GetOptions(); + if ( nMouseOptions & MouseSettingsOptions::AutoCenterPos ) { Size aSize = pDialog->GetOutputSizePixel(); pDialog->SetPointerPosPixel( Point( aSize.Width()/2, aSize.Height()/2 ) ); } - else if ( nMouseOptions & MOUSE_OPTION_AUTODEFBTNPOS ) + else if ( nMouseOptions & MouseSettingsOptions::AutoDefBtnPos ) { vcl::Window* pWindow = ImplGetDefaultButton( pDialog ); if ( !pWindow ) |