summaryrefslogtreecommitdiffstats
path: root/scribus/pslib.cpp
diff options
context:
space:
mode:
authormalex <malex@11d20701-8431-0410-a711-e3c959e3b870>2012-02-10 03:20:54 +0000
committermalex <malex@11d20701-8431-0410-a711-e3c959e3b870>2012-02-10 03:20:54 +0000
commit0a3229cf1860de8f59f5f59a3d0b3c563ea13df8 (patch)
tree738a12992d2ec9794035adab2195d4a9425aa27f /scribus/pslib.cpp
parentcee06e59c897fd7b66365c838248b394e047098e (diff)
downloadscribus-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/pslib.cpp')
-rw-r--r--scribus/pslib.cpp24
1 files changed, 12 insertions, 12 deletions
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);