diff options
Diffstat (limited to 'vcl/source/app')
-rw-r--r-- | vcl/source/app/settings.cxx | 2 | ||||
-rw-r--r-- | vcl/source/app/svapp.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx index 6a97396677cc..1cab69d178dc 100644 --- a/vcl/source/app/settings.cxx +++ b/vcl/source/app/settings.cxx @@ -2056,7 +2056,7 @@ const Size& StyleSettings::GetListBoxPreviewDefaultPixelSize() const if(0 == mxData->maListBoxPreviewDefaultPixelSize.Width() || 0 == mxData->maListBoxPreviewDefaultPixelSize.Height()) { const_cast< StyleSettings* >(this)->mxData->maListBoxPreviewDefaultPixelSize = - Application::GetDefaultDevice()->LogicToPixel(mxData->maListBoxPreviewDefaultLogicSize, MAP_APPFONT); + Application::GetDefaultDevice()->LogicToPixel(mxData->maListBoxPreviewDefaultLogicSize, MapUnit::MapAppFont); } return mxData->maListBoxPreviewDefaultPixelSize; diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx index 98dfacdb2d48..becfa0f9b0e9 100644 --- a/vcl/source/app/svapp.cxx +++ b/vcl/source/app/svapp.cxx @@ -723,7 +723,7 @@ void Application::SetSettings( const AllSettings& rSettings ) while ( pFrame ) { // restore AppFont cache data - pFrame->mpWindowImpl->mpFrameData->meMapUnit = MAP_PIXEL; + pFrame->mpWindowImpl->mpFrameData->meMapUnit = MapUnit::MapPixel; // call UpdateSettings from ClientWindow in order to prevent updating data twice vcl::Window* pClientWin = pFrame; |