Change in equidistant.

This commit is contained in:
dismine 2013-09-12 19:46:29 +03:00
parent fb99e19f27
commit 2edb62eb9b
3 changed files with 9 additions and 17 deletions

View File

@ -1,12 +1,6 @@
#include "calculator.h" #include "calculator.h"
#include <cmath> #include <cmath>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#pragma GCC diagnostic ignored "-Wconversion"
#pragma GCC diagnostic ignored "-Wsign-conversion"
#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
#include <QDebug> #include <QDebug>
#pragma GCC diagnostic pop
#define DELIMITER 1 #define DELIMITER 1
#define VARIABLE 2 #define VARIABLE 2

View File

@ -1,17 +1,11 @@
#ifndef CALCULATOR_H #ifndef CALCULATOR_H
#define CALCULATOR_H #define CALCULATOR_H
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#pragma GCC diagnostic ignored "-Wconversion"
#pragma GCC diagnostic ignored "-Wsign-conversion"
#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
#include <QtGlobal> #include <QtGlobal>
#include <QString> #include <QString>
#include <QMap> #include <QMap>
#include <QLineF> #include <QLineF>
#include <QPointF> #include <QPointF>
#pragma GCC diagnostic pop
#include "vcontainer.h" #include "vcontainer.h"
/** /**

View File

@ -354,11 +354,15 @@ QVector<QPointF> VContainer::EkvPoint(const QLineF &line1, const QLineF &line2,
break; break;
case(QLineF::UnboundedIntersection):{ case(QLineF::UnboundedIntersection):{
QLineF line( line1.p2(), CrosPoint ); QLineF line( line1.p2(), CrosPoint );
if(line.length() > width + toPixel(3)){ if(line.length() > width + toPixel(8)){
points.append(bigLine1.p2()); QLineF l;
line.setLength( width ); l = QLineF(bigLine1.p2(), CrosPoint);
points.append(line.p2() ); l.setLength(width);
points.append(bigLine2.p1()); points.append(l.p2());
l = QLineF(bigLine2.p1(), CrosPoint);
l.setLength(width);
points.append(l.p2());
} else { } else {
points.append(CrosPoint); points.append(CrosPoint);
return points; return points;