r17048 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:42 UTC 2011
Author: fschmid
Date: Thu Dec 1 20:17:42 2011
New Revision: 17048
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17048
Log:
Fixed Bug 10414: "Thin multisegmented custom lines incorrectly rendered to PDF"
Modified:
trunk/Scribus/scribus/pdflib_core.cpp
Modified: trunk/Scribus/scribus/pdflib_core.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17048&path=/trunk/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- trunk/Scribus/scribus/pdflib_core.cpp (original)
+++ trunk/Scribus/scribus/pdflib_core.cpp Thu Dec 1 20:17:42 2011
@@ -1995,13 +1995,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");
@@ -3490,13 +3490,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";
@@ -3630,13 +3630,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";
@@ -5106,13 +5106,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";
@@ -6223,13 +6223,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