diff options
author | Michael Brauer <mib@openoffice.org> | 2001-03-23 15:30:35 +0000 |
---|---|---|
committer | Michael Brauer <mib@openoffice.org> | 2001-03-23 15:30:35 +0000 |
commit | 5c71a50b7512af1f33b24a06f8e0f40ee2a47f23 (patch) | |
tree | 58b8a83f0266b4893b4a1c252b9dd06d8ba5795b /xmloff/source/text/txtprhdl.cxx | |
parent | 6608709f94717d276255e25805eed64c6217ac87 (diff) |
85336#: relative frame width/height is int16, not byte
Diffstat (limited to 'xmloff/source/text/txtprhdl.cxx')
-rw-r--r-- | xmloff/source/text/txtprhdl.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/xmloff/source/text/txtprhdl.cxx b/xmloff/source/text/txtprhdl.cxx index 929bd0c0bac3..7c3c2d780193 100644 --- a/xmloff/source/text/txtprhdl.cxx +++ b/xmloff/source/text/txtprhdl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: txtprhdl.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: dvo $ $Date: 2001-02-21 20:32:24 $ + * last change: $Author: mib $ $Date: 2001-03-23 16:30:35 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1094,7 +1094,7 @@ sal_Bool XMLTextRelWidthHeightPropHdl_Impl::importXML( sal_Int32 nValue; bRet = rUnitConverter.convertPercent( nValue, rStrImpValue ); if( bRet ) - rValue <<= (sal_Int8)nValue; + rValue <<= (sal_Int16)nValue; return bRet; } @@ -1105,9 +1105,8 @@ sal_Bool XMLTextRelWidthHeightPropHdl_Impl::exportXML( const SvXMLUnitConverter& rUnitConverter ) const { sal_Bool bRet = sal_False; - sal_Int8 nValue; - rValue >>= nValue; - if( nValue > 0 ) + sal_Int16 nValue; + if( (rValue >>= nValue) && nValue > 0 ) { OUStringBuffer aOut; rUnitConverter.convertPercent( aOut, nValue ); |