diff options
| author | malex <malex@11d20701-8431-0410-a711-e3c959e3b870> | 2012-02-10 03:20:54 +0000 |
|---|---|---|
| committer | malex <malex@11d20701-8431-0410-a711-e3c959e3b870> | 2012-02-10 03:20:54 +0000 |
| commit | 0a3229cf1860de8f59f5f59a3d0b3c563ea13df8 (patch) | |
| tree | 738a12992d2ec9794035adab2195d4a9425aa27f /scribus/scpageoutput.cpp | |
| parent | cee06e59c897fd7b66365c838248b394e047098e (diff) | |
| download | scribus-0a3229cf1860de8f59f5f59a3d0b3c563ea13df8.tar.gz scribus-0a3229cf1860de8f59f5f59a3d0b3c563ea13df8.tar.xz scribus-0a3229cf1860de8f59f5f59a3d0b3c563ea13df8.zip | |
Ubuntu patch from 9850 for building on armel arch
git-svn-id: svn://scribus.net/branches/Version14x/Scribus@17287 11d20701-8431-0410-a711-e3c959e3b870
Diffstat (limited to 'scribus/scpageoutput.cpp')
| -rw-r--r-- | scribus/scpageoutput.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scribus/scpageoutput.cpp b/scribus/scpageoutput.cpp index b13ceee..be3bb00 100644 --- a/scribus/scpageoutput.cpp +++ b/scribus/scpageoutput.cpp @@ -551,12 +551,12 @@ void ScPageOutput::drawGlyphs(PageItem* item, ScPainterExBase *painter, const Ch if (style.underlineWidth() != -1) lw = (style.underlineWidth() / 1000.0) * (style.fontSize() / 10.0); else - lw = qMax(style.font().strokeWidth(style.fontSize() / 10.0), 1.0); + lw = qMax(style.font().strokeWidth(style.fontSize() / 10.0), qreal(1.0)); } else { st = style.font().underlinePos(style.fontSize() / 10.0); - lw = qMax(style.font().strokeWidth(style.fontSize() / 10.0), 1.0); + lw = qMax(style.font().strokeWidth(style.fontSize() / 10.0), qreal(1.0)); } if (style.baselineOffset() != 0) st += (style.fontSize() / 10.0) * glyphs.scaleV * (style.baselineOffset() / 1000.0); @@ -638,12 +638,12 @@ void ScPageOutput::drawGlyphs(PageItem* item, ScPainterExBase *painter, const Ch if (style.strikethruWidth() != -1) lw = (style.strikethruWidth() / 1000.0) * (style.fontSize() / 10.0); else - lw = qMax(style.font().strokeWidth(style.fontSize() / 10.0), 1.0); + lw = qMax(style.font().strokeWidth(style.fontSize() / 10.0), qreal(1.0)); } else { st = style.font().strikeoutPos(style.fontSize() / 10.0); - lw = qMax(style.font().strokeWidth(style.fontSize() / 10.0), 1.0); + lw = qMax(style.font().strokeWidth(style.fontSize() / 10.0), qreal(1.0)); } if (style.baselineOffset() != 0) st += (style.fontSize() / 10.0) * glyphs.scaleV * (style.baselineOffset() / 1000.0); |
