Skip to content

Commit

Permalink
This is not actually needed
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledhosny committed Mar 23, 2016
1 parent fe15210 commit 130640e
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions scribus/pageitem_textframe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -726,20 +726,6 @@ struct LineControl {
double offset = (cStyle.fontSize() / 10) * (cStyle.baselineOffset() / 1000.0);
line.ascent = cStyle.font().ascent(cStyle.fontSize()/10.00) * scaleV + offset;
line.descent = cStyle.font().descent(cStyle.fontSize()/10.00) * scaleV - offset;

double asce = 0;
foreach (GlyphRun run, glyphRuns)
{
double scaleV = run.style().scaleV() / 1000.0;
double offset = (run.style().fontSize() / 10) * (run.style().baselineOffset() / 1000.0);

if (run.object())
{
asce = (run.object()->height() + run.object()->lineWidth()) * scaleV + offset;
}

line.ascent = qMax(line.ascent, asce);
}
#if 0
double asce, desc;
line.ascent = 0;
Expand Down

0 comments on commit 130640e

Please sign in to comment.