summaryrefslogtreecommitdiffstats
path: root/scribus/pdflib_core.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scribus/pdflib_core.cpp')
-rw-r--r--scribus/pdflib_core.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/scribus/pdflib_core.cpp b/scribus/pdflib_core.cpp
index 2426360..6a652cb 100644
--- a/scribus/pdflib_core.cpp
+++ b/scribus/pdflib_core.cpp
@@ -3914,7 +3914,6 @@ QString PDFLibCore::setTextSt(PageItem *ite, uint PNr, const Page* pag)
int tabCc = 0;
int savedOwnPage = ite->OwnPage;
double tabDist = ite->textToFrameDistLeft();
- double colLeft = 0.0;
QString tmp(""), tmp2("");
QList<ParagraphStyle::TabRecord> tTabValues;
ite->OwnPage = PNr;
@@ -3930,7 +3929,6 @@ QString PDFLibCore::setTextSt(PageItem *ite, uint PNr, const Page* pag)
for (uint ll=0; ll < ite->itemText.lines(); ++ll)
{
LineSpec ls = ite->itemText.line(ll);
- colLeft = ls.colLeft;
tabDist = ls.x;
double CurX = ls.x;
for (int d = ls.firstItem; d <= ls.lastItem; ++d)
@@ -4375,11 +4373,7 @@ bool PDFLibCore::setTextCh(PageItem *ite, uint PNr, double x, double y, uint d,
{
// double Ulen = style.font().charWidth(chstr, style.fontSize()) * (hl->glyph.scaleH);
double Ulen = hl->glyph.xadvance;
- double Upos, Uwid, kern;
- if (style.effects() & ScStyle_StartOfLine)
- kern = 0;
- else
- kern = style.fontSize() * style.tracking() / 10000.0;
+ double Upos, Uwid;
if ((style.underlineOffset() != -1) || (style.underlineWidth() != -1))
{
if (style.underlineOffset() != -1)
@@ -4655,11 +4649,7 @@ bool PDFLibCore::setTextCh(PageItem *ite, uint PNr, double x, double y, uint d,
{
// double Ulen = style.font().charWidth(chstr, style.fontSize()) * (hl->glyph.scaleH);
double Ulen = hl->glyph.xadvance;
- double Upos, Uwid, kern;
- if (hl->effects() & ScStyle_StartOfLine)
- kern = 0;
- else
- kern = style.fontSize() * style.tracking() / 10000.0;
+ double Upos, Uwid;
if ((style.strikethruOffset() != -1) || (style.strikethruWidth() != -1))
{
if (style.strikethruOffset() != -1)