diff --git a/src/canvas.cpp b/src/canvas.cpp --- a/src/canvas.cpp +++ b/src/canvas.cpp @@ -101,6 +101,9 @@ FigureEditor::FigureEditor( const char* name, Qt::WindowFlags f) : QGraphicsView(&c,parent), mesh(m) { + name = NULL; // use these two assignments merely to obviate compile time warnings + f = Qt::Widget; + intersection_line = 0; //angle_line = 0; setInteractive(true); @@ -153,8 +156,6 @@ void FigureEditor::mousePressEvent(QMous //QPointF p = matrix().inverted().map(e->pos()); QPointF p = mapToScene(e->pos()); - NodeItem *item; - #ifdef QDEBUG qDebug() << endl << "MousePressEvent location: (" << p.x() << "," << p.y() << ")." << endl; qDebug() << "Magnification: " << Cell::Magnification() << endl; @@ -231,7 +232,7 @@ void FigureEditor::mousePressEvent(QMous }*/ #ifdef QDEBUG qDebug() << typeid(**it).name() << endl; - #endif QDEBUG + #endif if ( !strcmp(typeid(**it).name(),"8NodeItem")) { //moving = dynamic_cast(*it);