From bb38814c256aae1c4442a16eb91a4f5d1fece200 Mon Sep 17 00:00:00 2001 From: jghali Date: Mon, 25 Jun 2012 18:06:29 +0000 Subject: fix quite a few build warnings git-svn-id: svn://scribus.net/branches/Version14x/Scribus@17634 11d20701-8431-0410-a711-e3c959e3b870 --- scribus/pdflib_core.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'scribus/pdflib_core.cpp') 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 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) -- cgit