Bugzilla – Attachment 79767 Details for
Bug 42134
FORMATTING: Autofit doesn't work properly on long texts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
single line patch for auto-fitting text with long paragraphs
0001-autofit-fix-for-bug-42134.patch (text/plain), 1.22 KB, created by
Vossman
on 2013-05-24 13:21:18 UTC
(
hide
)
Description:
single line patch for auto-fitting text with long paragraphs
Filename:
MIME Type:
Creator:
Vossman
Created:
2013-05-24 13:21:18 UTC
Size:
1.22 KB
patch
obsolete
>From d601aa4223a5da62a15d834c0145d5efd98336d4 Mon Sep 17 00:00:00 2001 >From: "Neil Voss (fourier)" <vossman77@yahoo.com> >Date: Fri, 24 May 2013 08:19:03 -0500 >Subject: [PATCH] autofit fix for bug #42134 > >Change-Id: I7706bf5c05560d0f13f0a03304b975b8cb47005f >--- > svx/source/svdraw/svdotext.cxx | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx >index 7a662aa..667e40d 100644 >--- a/svx/source/svdraw/svdotext.cxx >+++ b/svx/source/svdraw/svdotext.cxx >@@ -1277,6 +1277,12 @@ void SdrTextObj::ImpAutoFitText( SdrOutliner& rOutliner, const Size& rTextSize, > fFactor = double(rTextSize.Width())/aCurrTextSize.Width(); > else > fFactor = double(rTextSize.Height())/aCurrTextSize.Height(); >+ // fFactor scales in both x and y directions >+ // - this is fine for bulleted words >+ // - but it scales too much for a long paragraph >+ // - taking sqrt scales long paragraphs the best >+ // - bulleted words will have to go through more iterations >+ fFactor = std::sqrt(fFactor); > > sal_uInt16 nCurrStretchX, nCurrStretchY; > rOutliner.GetGlobalCharStretching(nCurrStretchX, nCurrStretchY); >-- >1.7.11.7 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 42134
:
53571
|
69004
|
69005
| 79767