[libreoffice] busted
Caolan McNamara
caolanm at fedoraproject.org
Tue Mar 29 16:18:52 UTC 2011
commit e91f88f890d770cc568dde6706cbf45b7f029fe9
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Mar 29 17:18:45 2011 +0100
busted
...bz-684580-X-and-strike-through-escapes-ra.patch | 25 ++++++++++---------
1 files changed, 13 insertions(+), 12 deletions(-)
---
diff --git a/0001-Resolves-rhbz-684580-X-and-strike-through-escapes-ra.patch b/0001-Resolves-rhbz-684580-X-and-strike-through-escapes-ra.patch
index 52b46da..eb92d73 100644
--- a/0001-Resolves-rhbz-684580-X-and-strike-through-escapes-ra.patch
+++ b/0001-Resolves-rhbz-684580-X-and-strike-through-escapes-ra.patch
@@ -25,21 +25,22 @@ index 02febe3..d43c163 100644
// PDF-export does its own strikeout drawing... why again?
if( mpPDFWriter && mpPDFWriter->isBuiltinFont(mpFontEntry->maFontSelData.mpFontData) )
return;
-@@ -3984,25 +3989,7 @@
- aChars[i] = cStrikeoutChar;
+@@ -3985,24 +3990,17 @@
const String aStrikeoutTest( aChars, nTestStrLen );
-- // calculate approximation of strikeout atom size
+ // calculate approximation of strikeout atom size
- long nStrikeoutWidth = nWidth;
-- SalLayout* pLayout = ImplLayout( aStrikeoutTest, 0, nTestStrLen );
-- if( pLayout )
-- {
++ long nStrikeoutWidth = 0;
+ SalLayout* pLayout = ImplLayout( aStrikeoutTest, 0, nTestStrLen );
+ if( pLayout )
+ {
- nStrikeoutWidth = (pLayout->GetTextWidth() +nTestStrLen/2) / (nTestStrLen * pLayout->GetUnitsPerPixel());
-- pLayout->Release();
-- }
-- if( nStrikeoutWidth <= 0 ) // sanity check
-- return;
--
++ nStrikeoutWidth = pLayout->GetTextWidth() / (nTestStrLen * pLayout->GetUnitsPerPixel());
+ pLayout->Release();
+ }
+ if( nStrikeoutWidth <= 0 ) // sanity check
+ return;
+
- // calculate acceptable strikeout length
- // allow the strikeout to be one pixel larger than the text it strikes out
- long nMaxWidth = nStrikeoutWidth / 2;
@@ -52,7 +53,7 @@ index 02febe3..d43c163 100644
// if the text width is smaller than the strikeout text, then do not
// strike out at all. This case requires user interaction, e.g. adding
// a space to the text
-@@ -4034,8 +4021,28 @@
+@@ -4034,8 +4032,28 @@
ImplInitTextColor();
pLayout->DrawBase() = Point( nX+mnTextOffX, nY+mnTextOffY );
More information about the scm-commits
mailing list