summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-14 11:44:10 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-14 11:44:10 +0100
commit8c000c1f38fd603512cf94d166eb7b779aa8d529 (patch)
tree5ae8e129e24376179fd11ff4c0764add6ef0e446 /filter
parent7c3ca696543d0e9d6771d53f386086086d8b8643 (diff)
Fix conversion from MS-ODRAW gtextSpacing to SvxCharScaleWidthItem
... i.e., from 16.16 FixedPoint with default value 0x00010000 to percentage. At least that is what I assume the odd code that looked like that since its inception in f90ea7408ebbe2a2d53e94f1dc16d0e3623f59d8 "INTEGRATION: CWS sj09" was acutally supposed to do. Change-Id: I482fb3c1d00757b2f18c587bbb6b4a6755392d2f
Diffstat (limited to 'filter')
-rw-r--r--filter/source/msfilter/msdffimp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index 5522d648db75..2e9e5f42917a 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -4317,7 +4317,7 @@ SdrObject* SvxMSDffManager::ImportShape( const DffRecordHeader& rHd, SvStream& r
}
if ( IsProperty( DFF_Prop_gtextSpacing ) )
{
- sal_Int32 nTextWidth = GetPropertyValue( DFF_Prop_gtextSpacing, 100 < 16 ) / 655;
+ sal_Int32 nTextWidth = GetPropertyValue( DFF_Prop_gtextSpacing, 1 << 16 ) / 655;
if ( nTextWidth != 100 )
aSet.Put( SvxCharScaleWidthItem( (sal_uInt16)nTextWidth, EE_CHAR_FONTWIDTH ) );
}