summaryrefslogtreecommitdiffstats
path: root/scribus/pdflib_core.cpp
diff options
context:
space:
mode:
authorjghali <jghali@11d20701-8431-0410-a711-e3c959e3b870>2012-06-25 18:06:29 +0000
committerjghali <jghali@11d20701-8431-0410-a711-e3c959e3b870>2012-06-25 18:06:29 +0000
commitbb38814c256aae1c4442a16eb91a4f5d1fece200 (patch)
tree74bc6b39816eeca9a764466f9dd720a02dc7ba45 /scribus/pdflib_core.cpp
parent7efd603c3c10965dda75de63918aaa3843bc0d1a (diff)
downloadscribus-bb38814c256aae1c4442a16eb91a4f5d1fece200.tar.gz
scribus-bb38814c256aae1c4442a16eb91a4f5d1fece200.tar.xz
scribus-bb38814c256aae1c4442a16eb91a4f5d1fece200.zip
fix quite a few build warnings
git-svn-id: svn://scribus.net/branches/Version14x/Scribus@17634 11d20701-8431-0410-a711-e3c959e3b870
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)