diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-13 14:23:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-19 08:25:59 +0200 |
commit | 6390d77a1498ff2474522031af4a68af5e865d8d (patch) | |
tree | a9ed0f2242e09b4de943e02c533a04861c011324 /vcl/source | |
parent | e175f9f4393eb3badd763fa5b1cdc5b3aabab0e4 (diff) |
convert MeasurementSystem to scoped enum
Change-Id: I5d26c50aa0e2c68edab6ee217ae6bdb0ee45dc09
Reviewed-on: https://gerrit.libreoffice.org/36525
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/window/printdlg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx index ad623fb09830..dac298bc7c9d 100644 --- a/vcl/source/window/printdlg.cxx +++ b/vcl/source/window/printdlg.cxx @@ -236,7 +236,7 @@ void PrintDialog::PrintPreviewWindow::setPreview( const GDIMetaFile& i_rNewPrevi const LocaleDataWrapper& rLocWrap( GetSettings().GetLocaleDataWrapper() ); MapUnit eUnit = MapUnit::MapMM; int nDigits = 0; - if( rLocWrap.getMeasurementSystemEnum() == MEASURE_US ) + if( rLocWrap.getMeasurementSystemEnum() == MeasurementSystem::US ) { eUnit = MapUnit::Map100thInch; nDigits = 2; @@ -447,7 +447,7 @@ void PrintDialog::NUpTabPage::initFromMultiPageSetup( const vcl::PrinterControll const LocaleDataWrapper& rLocWrap( mpPageMarginEdt->GetLocaleDataWrapper() ); FieldUnit eUnit = FUNIT_MM; sal_uInt16 nDigits = 0; - if( rLocWrap.getMeasurementSystemEnum() == MEASURE_US ) + if( rLocWrap.getMeasurementSystemEnum() == MeasurementSystem::US ) { eUnit = FUNIT_INCH; nDigits = 2; |