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/pdflib_core.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/pdflib_core.cpp')
| -rw-r--r-- | scribus/pdflib_core.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scribus/pdflib_core.cpp b/scribus/pdflib_core.cpp index ab0bb02..f781812 100644 --- a/scribus/pdflib_core.cpp +++ b/scribus/pdflib_core.cpp @@ -4418,12 +4418,12 @@ bool PDFLibCore::setTextCh(PageItem *ite, uint PNr, double x, double y, uint d, if (style.underlineWidth() != -1) Uwid = (style.underlineWidth() / 1000.0) * (style.fontSize() / 10.0); else - Uwid = qMax(style.font().strokeWidth(style.fontSize() / 10.0), 1.0); + Uwid = qMax(style.font().strokeWidth(style.fontSize() / 10.0), (qreal)1.0); } else { Upos = style.font().underlinePos(style.fontSize() / 10.0); - Uwid = qMax(style.font().strokeWidth(style.fontSize() / 10.0), 1.0); + Uwid = qMax(style.font().strokeWidth(style.fontSize() / 10.0), (qreal)1.0); } if (style.baselineOffset() != 0) Upos += (style.fontSize() / 10.0) * hl->glyph.scaleV * (style.baselineOffset() / 1000.0); @@ -4698,12 +4698,12 @@ bool PDFLibCore::setTextCh(PageItem *ite, uint PNr, double x, double y, uint d, if (style.strikethruWidth() != -1) Uwid = (style.strikethruWidth() / 1000.0) * (style.fontSize() / 10.0); else - Uwid = qMax(style.font().strokeWidth(style.fontSize() / 10.0), 1.0); + Uwid = qMax(style.font().strokeWidth(style.fontSize() / 10.0), (qreal)1.0); } else { Upos = style.font().strikeoutPos(style.fontSize() / 10.0); - Uwid = qMax(style.font().strokeWidth(style.fontSize() / 10.0), 1.0); + Uwid = qMax(style.font().strokeWidth(style.fontSize() / 10.0), (qreal)1.0); } if (style.baselineOffset() != 0) Upos += (style.fontSize() / 10.0) * hl->glyph.scaleV * (style.baselineOffset() / 1000.0); |
