Return-Path: X-Original-To: apmail-incubator-ooo-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E7C33D2A6 for ; Mon, 10 Sep 2012 08:17:23 +0000 (UTC) Received: (qmail 56754 invoked by uid 500); 10 Sep 2012 08:17:22 -0000 Delivered-To: apmail-incubator-ooo-commits-archive@incubator.apache.org Received: (qmail 56711 invoked by uid 500); 10 Sep 2012 08:17:22 -0000 Mailing-List: contact ooo-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-dev@incubator.apache.org Delivered-To: mailing list ooo-commits@incubator.apache.org Received: (qmail 56471 invoked by uid 99); 10 Sep 2012 08:17:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2012 08:17:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2012 08:17:20 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 1315C23888E4; Mon, 10 Sep 2012 08:16:38 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1382686 - /incubator/ooo/trunk/main/filter/source/msfilter/msdffimp.cxx Date: Mon, 10 Sep 2012 08:16:37 -0000 To: ooo-commits@incubator.apache.org From: lijiany@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120910081638.1315C23888E4@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: lijiany Date: Mon Sep 10 08:16:37 2012 New Revision: 1382686 URL: http://svn.apache.org/viewvc?rev=1382686&view=rev Log: #119628# Arrow shape changed is save doc file by AOO Reported by: Yan Ji Review by: sunying Patch by: Jianyuan Li Modified: incubator/ooo/trunk/main/filter/source/msfilter/msdffimp.cxx Modified: incubator/ooo/trunk/main/filter/source/msfilter/msdffimp.cxx URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/filter/source/msfilter/msdffimp.cxx?rev=1382686&r1=1382685&r2=1382686&view=diff ============================================================================== --- incubator/ooo/trunk/main/filter/source/msfilter/msdffimp.cxx (original) +++ incubator/ooo/trunk/main/filter/source/msfilter/msdffimp.cxx Mon Sep 10 08:16:37 2012 @@ -798,7 +798,10 @@ static basegfx::B2DPolygon GetLineArrow( String& rsArrowName, sal_Bool bScaleArrow ) { basegfx::B2DPolygon aRetval; - double fLineWidth = nLineWidth < 70 ? 70.0 : nLineWidth; + // 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 fLenghtMul, fWidthMul; sal_Int32 nLineNumber; switch( eLineLenght ) @@ -816,12 +819,6 @@ static basegfx::B2DPolygon GetLineArrow( 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; switch ( eLineEnd ) {