diff options
Diffstat (limited to 'reportdesign/source/filter/xml/xmlImage.cxx')
-rw-r--r-- | reportdesign/source/filter/xml/xmlImage.cxx | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/reportdesign/source/filter/xml/xmlImage.cxx b/reportdesign/source/filter/xml/xmlImage.cxx index aaefd993ef01..1f489bc947fd 100644 --- a/reportdesign/source/filter/xml/xmlImage.cxx +++ b/reportdesign/source/filter/xml/xmlImage.cxx @@ -2,13 +2,10 @@ * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * - * Copyright 2008 by Sun Microsystems, Inc. + * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite * - * $RCSfile: xmlImage.cxx,v $ - * $Revision: 1.7 $ - * * This file is part of OpenOffice.org. * * OpenOffice.org is free software: you can redistribute it and/or modify @@ -92,18 +89,18 @@ OXMLImage::OXMLImage( ORptFilter& rImport, _xComponent->setPreserveIRI(s_sTRUE == sValue); break; case XML_TOK_SCALE: - {
- sal_uInt16 nRet = awt::ImageScaleMode::None;
- if ( s_sTRUE == sValue )
- {
- nRet = awt::ImageScaleMode::Anisotropic;
- }
- else
- {
- const SvXMLEnumMapEntry* aXML_EnumMap = OXMLHelper::GetImageScaleOptions();
- SvXMLUnitConverter::convertEnum( nRet, sValue, aXML_EnumMap );
- }
- _xComponent->setScaleMode( nRet );
+ { + sal_uInt16 nRet = awt::ImageScaleMode::None; + if ( s_sTRUE == sValue ) + { + nRet = awt::ImageScaleMode::Anisotropic; + } + else + { + const SvXMLEnumMapEntry* aXML_EnumMap = OXMLHelper::GetImageScaleOptions(); + SvXMLUnitConverter::convertEnum( nRet, sValue, aXML_EnumMap ); + } + _xComponent->setScaleMode( nRet ); } break; case XML_TOK_DATA_FORMULA: |