git-svn-id: svn://db.shs.com.ru/libs@244 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2017-06-26 10:23:47 +00:00
parent 853d907725
commit 4a0663673a
7 changed files with 58 additions and 24 deletions

View File

@@ -44,6 +44,7 @@ void BlockViewWavetrace::fill(const QRect & rect, short val) {
bool BlockViewWavetrace::trace(const QPoint & start, const QPoint & finish) {
st = start;
fn = finish;
if (dir_ == NoTrace) return true;
//qDebug() << "trace" << start << finish;
//return true;
int cx, cy;
@@ -103,6 +104,10 @@ bool BlockViewWavetrace::trace(const QPoint & start, const QPoint & finish) {
void BlockViewWavetrace::gatherPath() {
path_.clear();
path_.push_back(fn);
if (dir_ == NoTrace) {
path_.push_front(st);
return;
}
int cx, cy;
int pa = -1, ca = -1;
bool first = true;