r17047 by fschmid - Fixed Bug 10414: "Thin multisegmented custom lines incorrectly rendered to PDF"
scribus-commit
scribus-commit at lists.scribus.net
Thu Dec 1 20:17:00 UTC 2011
Author: fschmid
Date: Thu Dec 1 20:17:00 2011
New Revision: 17047
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17047
Log:
Fixed Bug 10414: "Thin multisegmented custom lines incorrectly rendered to PDF"
Modified:
branches/Version135/Scribus/scribus/pdflib_core.cpp
Modified: branches/Version135/Scribus/scribus/pdflib_core.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17047&path=/branches/Version135/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- branches/Version135/Scribus/scribus/pdflib_core.cpp (original)
+++ branches/Version135/Scribus/scribus/pdflib_core.cpp Thu Dec 1 20:17:00 2011
@@ -1842,13 +1842,13 @@
QVector<double>::iterator it;
for ( it = ite->DashValues.begin(); it != ite->DashValues.end(); ++it )
{
- int da = static_cast<int>(*it);
+ double da = *it;
// #8758: Custom dotted lines don't export properly to pdf
// Null values have to be exported if line end != flat
if ((da != 0) || (ite->lineEnd() != Qt::FlatCap))
PutPage(QString::number(da)+" ");
}
- PutPage("] "+QString::number(static_cast<int>(ite->DashOffset))+" d\n");
+ PutPage("] "+QString::number(ite->DashOffset)+" d\n");
}
else
PutPage("["+getDashString(ite->PLineArt, ite->lineWidth())+"] 0 d\n");
@@ -3092,13 +3092,13 @@
QVector<double>::iterator it;
for ( it = ite->DashValues.begin(); it != ite->DashValues.end(); ++it )
{
- int da = static_cast<int>(*it);
+ double da = *it;
// #8758: Custom dotted lines don't export properly to pdf
// Null values have to be exported if line end != flat
if ((da != 0) || (ite->lineEnd() != Qt::FlatCap))
tmp += QString::number(da)+" ";
}
- tmp += "] "+QString::number(static_cast<int>(ite->DashOffset))+" d\n";
+ tmp += "] "+QString::number(ite->DashOffset)+" d\n";
}
else
tmp += "["+getDashString(ite->PLineArt, ite->lineWidth())+"] 0 d\n";
@@ -3230,13 +3230,13 @@
QVector<double>::iterator it;
for ( it = ite->DashValues.begin(); it != ite->DashValues.end(); ++it )
{
- int da = static_cast<int>(*it);
+ double da = *it;
// #8758: Custom dotted lines don't export properly to pdf
// Null values have to be exported if line end != flat
if ((da != 0) || (ite->lineEnd() != Qt::FlatCap))
tmp += QString::number(da)+" ";
}
- tmp += "] "+QString::number(static_cast<int>(ite->DashOffset))+" d\n";
+ tmp += "] "+QString::number(ite->DashOffset)+" d\n";
}
else
tmp += "["+getDashString(ite->PLineArt, ite->lineWidth())+"] 0 d\n";
@@ -4312,13 +4312,13 @@
QVector<double>::iterator it;
for ( it = embedded->DashValues.begin(); it != embedded->DashValues.end(); ++it )
{
- int da = static_cast<int>(*it);
+ double da = *it;
// #8758: Custom dotted lines don't export properly to pdf
// Null values have to be exported if line end != flat
if ((da != 0) || (embedded->lineEnd() != Qt::FlatCap))
tmp2 += QString::number(da)+" ";
}
- tmp2 += "] "+QString::number(static_cast<int>(embedded->DashOffset))+" d\n";
+ tmp2 += "] "+QString::number(embedded->DashOffset)+" d\n";
}
else
tmp2 += "["+getDashString(embedded->PLineArt, embedded->lineWidth())+"] 0 d\n";
@@ -5106,13 +5106,13 @@
QVector<double>::iterator it;
for ( it = item->DashValues.begin(); it != item->DashValues.end(); ++it )
{
- int da = static_cast<int>(*it);
+ double da = *it;
// #8758: Custom dotted lines don't export properly to pdf
// Null values have to be exported if line end != flat
if ((da != 0) || (item->lineEnd() != Qt::FlatCap))
tmp2 += QString::number(da)+" ";
}
- tmp2 += "] "+QString::number(static_cast<int>(item->DashOffset))+" d\n";
+ tmp2 += "] "+QString::number(item->DashOffset)+" d\n";
}
else
tmp2 += "["+getDashString(item->PLineArt, item->lineWidth())+"] 0 d\n";
More information about the scribus-commit
mailing list