Merge with release
This commit is contained in:
commit
b5249e8565
|
@ -1,3 +1,7 @@
|
|||
# Version 0.3.3 Released May 20, 2015
|
||||
- [#297] Scaling Error - Print.
|
||||
- [#304] Layout appears different than my pattern.
|
||||
|
||||
# Version 0.3.2 Released May 15, 2015
|
||||
- [#298] Segmented Curve isn't selected in Seam Allowance tool.
|
||||
- [#299] Error when opening .val file.
|
||||
|
|
2
dist/debian/changelog
vendored
2
dist/debian/changelog
vendored
|
@ -1,4 +1,4 @@
|
|||
valentina (0.3.2) trusty; urgency=low
|
||||
valentina (0.3.3) trusty; urgency=low
|
||||
|
||||
* Auto build.
|
||||
|
||||
|
|
2
dist/rpm/_service
vendored
2
dist/rpm/_service
vendored
|
@ -1,7 +1,7 @@
|
|||
<services>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/dismine/Valentina.git</param>
|
||||
<param name="versionprefix">0.3.2</param>
|
||||
<param name="versionprefix">0.3.3</param>
|
||||
<param name="filename">valentina</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="versionformat">%at</param>
|
||||
|
|
2
dist/rpm/valentina.spec
vendored
2
dist/rpm/valentina.spec
vendored
|
@ -33,7 +33,7 @@ BuildRequires: update-desktop-files
|
|||
|
||||
Requires: poppler-utils
|
||||
|
||||
Version: 0.3.2
|
||||
Version: 0.3.3
|
||||
Release: 0
|
||||
URL: https://bitbucket.org/dismine/valentina
|
||||
License: GPL-3.0+
|
||||
|
|
|
@ -328,7 +328,7 @@ void TableWindow::SvgFile(const QString &name, int i) const
|
|||
painter.setPen(QPen(Qt::black, qApp->toPixel(qApp->widthHairLine()), Qt::SolidLine, Qt::RoundCap,
|
||||
Qt::RoundJoin));
|
||||
painter.setBrush ( QBrush ( Qt::NoBrush ) );
|
||||
scenes.at(i)->render(&painter);
|
||||
scenes.at(i)->render(&painter, paper->rect(), paper->rect(), Qt::IgnoreAspectRatio);
|
||||
painter.end();
|
||||
}
|
||||
}
|
||||
|
@ -345,7 +345,7 @@ void TableWindow::PngFile(const QString &name, int i) const
|
|||
{
|
||||
const QRectF r = paper->rect();
|
||||
// Create the image with the exact size of the shrunk scene
|
||||
QImage image(QSize(static_cast<qint32>(r.width()), static_cast<qint32>(r.height())), QImage::Format_ARGB32);
|
||||
QImage image(r.size().toSize(), QImage::Format_ARGB32);
|
||||
image.fill(Qt::transparent); // Start all pixels transparent
|
||||
QPainter painter(&image);
|
||||
painter.setFont( QFont( "Arial", 8, QFont::Normal ) );
|
||||
|
@ -353,7 +353,7 @@ void TableWindow::PngFile(const QString &name, int i) const
|
|||
painter.setPen(QPen(Qt::black, qApp->toPixel(qApp->widthMainLine()), Qt::SolidLine, Qt::RoundCap,
|
||||
Qt::RoundJoin));
|
||||
painter.setBrush ( QBrush ( Qt::NoBrush ) );
|
||||
scenes.at(i)->render(&painter, r, r);
|
||||
scenes.at(i)->render(&painter, r, r, Qt::IgnoreAspectRatio);
|
||||
image.save(name);
|
||||
}
|
||||
}
|
||||
|
@ -386,7 +386,7 @@ void TableWindow::PdfFile(const QString &name, int i) const
|
|||
painter.setPen(QPen(Qt::black, qApp->toPixel(qApp->widthMainLine()), Qt::SolidLine, Qt::RoundCap,
|
||||
Qt::RoundJoin));
|
||||
painter.setBrush ( QBrush ( Qt::NoBrush ) );
|
||||
scenes.at(i)->render(&painter);
|
||||
scenes.at(i)->render(&painter, r, r, Qt::IgnoreAspectRatio);
|
||||
painter.end();
|
||||
}
|
||||
}
|
||||
|
@ -462,7 +462,7 @@ void TableWindow::ObjFile(const QString &name, int i) const
|
|||
generator.setResolution(static_cast<int>(qApp->PrintDPI));
|
||||
QPainter painter;
|
||||
painter.begin(&generator);
|
||||
scenes.at(i)->render(&painter);
|
||||
scenes.at(i)->render(&painter, paper->rect(), paper->rect(), Qt::IgnoreAspectRatio);
|
||||
painter.end();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
extern const int MAJOR_VERSION = 0;
|
||||
extern const int MINOR_VERSION = 3;
|
||||
extern const int DEBUG_VERSION = 2;
|
||||
extern const int DEBUG_VERSION = 3;
|
||||
|
||||
extern const QString APP_VERSION(QStringLiteral("%1.%2.%3.%4").arg(MAJOR_VERSION).arg(MINOR_VERSION)
|
||||
.arg(DEBUG_VERSION).arg(LATEST_TAG_DISTANCE));
|
||||
|
|
|
@ -39,8 +39,8 @@ extern const QString APP_VERSION;
|
|||
|
||||
// Change version number in version.cpp too.
|
||||
|
||||
#define VER_FILEVERSION 0,3,2,0
|
||||
#define VER_FILEVERSION_STR "0.3.2.0\0"
|
||||
#define VER_FILEVERSION 0,3,3,0
|
||||
#define VER_FILEVERSION_STR "0.3.3.0\0"
|
||||
|
||||
#define VER_PRODUCTVERSION VER_FILEVERSION
|
||||
#define VER_PRODUCTVERSION_STR VER_FILEVERSION_STR
|
||||
|
|
|
@ -227,27 +227,28 @@ QVector<QPointF> VAbstractDetail::Equidistant(const QVector<QPointF> &points, co
|
|||
QVector<QPointF> VAbstractDetail::RemoveDublicates(const QVector<QPointF> &points)
|
||||
{
|
||||
QVector<QPointF> p = points;
|
||||
for (int i = 0; i < p.size(); i++)
|
||||
{
|
||||
QPointF current = p.at(i);
|
||||
|
||||
for (int j = i; j < p.size(); j++)
|
||||
if (not p.isEmpty() && p.size() > 1)
|
||||
{
|
||||
if (j == i)
|
||||
// Path can't be closed
|
||||
if (p.first() == p.last())
|
||||
{
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 1, 0)
|
||||
p.remove(p.size() - 1);
|
||||
#else
|
||||
p.removeLast();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < p.size()-1; ++i)
|
||||
{
|
||||
if (p.at(i) == p.at(i+1))
|
||||
{
|
||||
p.erase(p.begin() + i + 1);
|
||||
--i;
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
QPointF temp = p.at(j);
|
||||
if (current == temp)
|
||||
{
|
||||
QVector<QPointF>::iterator iter = p.begin() + j;
|
||||
p.erase(iter);
|
||||
j--;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return p;
|
||||
|
|
|
@ -69,14 +69,7 @@ QVector<QPointF> VLayoutDetail::GetContourPoints() const
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void VLayoutDetail::SetCountourPoints(const QVector<QPointF> &points)
|
||||
{
|
||||
d->contour = points;
|
||||
// Contour can't be closed
|
||||
if (d->contour.first() == d->contour.last())
|
||||
{
|
||||
d->contour.removeLast();
|
||||
}
|
||||
|
||||
d->contour = RemoveDublicates(RoundPoints(d->contour));
|
||||
d->contour = RemoveDublicates(RoundPoints(points));
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
@ -94,12 +87,6 @@ void VLayoutDetail::SetSeamAllowencePoints(const QVector<QPointF> &points, bool
|
|||
d->seamAllowence = points;
|
||||
if (not d->seamAllowence.isEmpty())
|
||||
{
|
||||
// Seam allowence can't be closed
|
||||
if (d->seamAllowence.first() == d->seamAllowence.last())
|
||||
{
|
||||
d->seamAllowence.removeLast();
|
||||
}
|
||||
|
||||
d->seamAllowence = RemoveDublicates(RoundPoints(d->seamAllowence));
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user