summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorJianyuan Li <lijiany@apache.org>2012-09-10 07:16:37 +0000
committerXisco Fauli <anistenis@gmail.com>2013-06-06 01:52:55 +0200
commita110d6e4e28820cae9885a6b169c151dfffa7253 (patch)
tree9e6c89bf20e640067d932daa670c47c02b4baec4 /filter
parent2b9b50e1f45540fa34ef24951e68dcdfcdffeb31 (diff)
Related: #i119628# Arrow shape changed is save doc file by AOO
Reported by: Yan Ji Review by: sunying Patch by: Jianyuan Li (cherry picked from commit 43ff744cb9411b13860c3c57f7a052a6ab56001e) Conflicts: filter/source/msfilter/msdffimp.cxx Change-Id: I88ab49daa7b82b573eaf6a22eb4a2ce97b871027 Signed-off-by: Xisco Fauli <anistenis@gmail.com> (cherry picked from commit 60790b3f0ccc1779bcff2ddcc278a9027aedabee)
Diffstat (limited to 'filter')
-rw-r--r--filter/source/msfilter/msdffimp.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index 25942ee047d6..b02d5995eaef 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -768,8 +768,11 @@ static basegfx::B2DPolyPolygon GetLineArrow( const sal_Int32 nLineWidth, const M
OUString& rsArrowName, sal_Bool bScaleArrow )
{
basegfx::B2DPolyPolygon aRetPolyPoly;
+ // 70 100mm = 2pt = 40 twip. In MS, line width less than 2pt has the same size arrow as 2pt
+ //If the unit is twip. Make all use this unit especailly the critical value 70/40.
+ sal_Int32 nLineWidthCritical = bScaleArrow ? 40 : 70;
+ double fLineWidth = nLineWidth < nLineWidthCritical ? nLineWidthCritical : nLineWidth;;
- double fLineWidth = nLineWidth < 70 ? 70.0 : nLineWidth;
double fLenghtMul, fWidthMul;
sal_Int32 nLineNumber;
switch( eLineLenght )
@@ -787,12 +790,6 @@ static basegfx::B2DPolyPolygon GetLineArrow( const sal_Int32 nLineWidth, const M
case mso_lineWideArrow : fWidthMul = 5.0; nLineNumber += 6; break;
}
- if ( bScaleArrow ) // #i33630 arrows imported from Word are too big
- {
- fWidthMul /= 1.75;
- fLenghtMul/= 1.75;
- }
-
rbArrowCenter = sal_False;
OUStringBuffer aArrowName;
switch ( eLineEnd )