git-svn-id: svn://db.shs.com.ru/libs@244 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user