Convert local seam allowance to pixels.
--HG-- branch : feature
This commit is contained in:
parent
2fc2491484
commit
dd8067e47f
|
@ -28,6 +28,7 @@
|
||||||
|
|
||||||
#include "vabstractpiece.h"
|
#include "vabstractpiece.h"
|
||||||
#include "vabstractpiece_p.h"
|
#include "vabstractpiece_p.h"
|
||||||
|
#include "../vmisc/vabstractapplication.h"
|
||||||
|
|
||||||
#include <QLineF>
|
#include <QLineF>
|
||||||
#include <QSet>
|
#include <QSet>
|
||||||
|
@ -420,13 +421,13 @@ QVector<QPointF> VAbstractPiece::EkvPoint(const VSAPoint &p1Line1, const VSAPoin
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
QLineF VAbstractPiece::ParallelLine(const VSAPoint &p1, const VSAPoint &p2, qreal width)
|
QLineF VAbstractPiece::ParallelLine(const VSAPoint &p1, const VSAPoint &p2, qreal width)
|
||||||
{
|
{
|
||||||
qreal w1 = p1.GetSAAfter();
|
qreal w1 = qApp->toPixel(p1.GetSAAfter());
|
||||||
if (w1 < 0)
|
if (w1 < 0)
|
||||||
{
|
{
|
||||||
w1 = width;
|
w1 = width;
|
||||||
}
|
}
|
||||||
|
|
||||||
qreal w2 = p2.GetSABefore();
|
qreal w2 = qApp->toPixel(p2.GetSABefore());
|
||||||
if (w2 < 0)
|
if (w2 < 0)
|
||||||
{
|
{
|
||||||
w2 = width;
|
w2 = width;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user