From 0a3229cf1860de8f59f5f59a3d0b3c563ea13df8 Mon Sep 17 00:00:00 2001 From: malex Date: Fri, 10 Feb 2012 03:20:54 +0000 Subject: Ubuntu patch from 9850 for building on armel arch git-svn-id: svn://scribus.net/branches/Version14x/Scribus@17287 11d20701-8431-0410-a711-e3c959e3b870 --- scribus/pslib.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'scribus/pslib.cpp') diff --git a/scribus/pslib.cpp b/scribus/pslib.cpp index 141e506..fcc5baa 100644 --- a/scribus/pslib.cpp +++ b/scribus/pslib.cpp @@ -2840,12 +2840,12 @@ bool PSLib::ProcessItem(ScribusDoc* Doc, Page* a, PageItem* c, uint PNr, bool se 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); @@ -2911,12 +2911,12 @@ bool PSLib::ProcessItem(ScribusDoc* Doc, Page* a, PageItem* c, uint PNr, bool se 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); @@ -2988,12 +2988,12 @@ bool PSLib::ProcessItem(ScribusDoc* Doc, Page* a, PageItem* c, uint PNr, bool se 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); @@ -3065,12 +3065,12 @@ bool PSLib::ProcessItem(ScribusDoc* Doc, Page* a, PageItem* c, uint PNr, bool se 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); @@ -3789,12 +3789,12 @@ void PSLib::setTextCh(ScribusDoc* Doc, PageItem* ite, double x, double y, bool g if (cstyle.underlineWidth() != -1) lw = (cstyle.underlineWidth() / 1000.0) * (cstyle.fontSize() / 10.0); else - lw = qMax(cstyle.font().strokeWidth(cstyle.fontSize() / 10.0), 1.0); + lw = qMax(cstyle.font().strokeWidth(cstyle.fontSize() / 10.0), qreal(1.0)); } else { Upos = cstyle.font().underlinePos(cstyle.fontSize() / 10.0); - lw = qMax(cstyle.font().strokeWidth(cstyle.fontSize() / 10.0), 1.0); + lw = qMax(cstyle.font().strokeWidth(cstyle.fontSize() / 10.0), qreal(1.0)); } if (cstyle.baselineOffset() != 0) Upos += (cstyle.fontSize() / 10.0) * glyphs.scaleV * (cstyle.baselineOffset() / 1000.0); @@ -3922,12 +3922,12 @@ void PSLib::setTextCh(ScribusDoc* Doc, PageItem* ite, double x, double y, bool g if (cstyle.strikethruWidth() != -1) lw = (cstyle.strikethruWidth() / 1000.0) * (cstyle.fontSize() / 10.0); else - lw = qMax(cstyle.font().strokeWidth(cstyle.fontSize() / 10.0), 1.0); + lw = qMax(cstyle.font().strokeWidth(cstyle.fontSize() / 10.0), qreal(1.0)); } else { Upos = cstyle.font().strikeoutPos(cstyle.fontSize() / 10.0); - lw = qMax(cstyle.font().strokeWidth(cstyle.fontSize() / 10.0), 1.0); + lw = qMax(cstyle.font().strokeWidth(cstyle.fontSize() / 10.0), qreal(1.0)); } if (cstyle.baselineOffset() != 0) Upos += (cstyle.fontSize() / 10.0) * glyphs.scaleV * (cstyle.baselineOffset() / 1000.0); -- cgit