comparison layer/FlexiNoteLayer.cpp @ 688:212644efa523 tonioni

Fix uninitialised member
author Chris Cannam
date Fri, 29 Nov 2013 14:51:47 +0000
parents 917039d333bb
children ad12e428785b
comparison
equal deleted inserted replaced
687:502fe55c2184 688:212644efa523
58 m_editing(false), 58 m_editing(false),
59 m_originalPoint(0, 0.0, 0, 1.f, tr("New Point")), 59 m_originalPoint(0, 0.0, 0, 1.f, tr("New Point")),
60 m_editingPoint(0, 0.0, 0, 1.f, tr("New Point")), 60 m_editingPoint(0, 0.0, 0, 1.f, tr("New Point")),
61 m_editingCommand(0), 61 m_editingCommand(0),
62 m_verticalScale(AutoAlignScale), 62 m_verticalScale(AutoAlignScale),
63 m_editMode(DragNote),
63 m_scaleMinimum(34), 64 m_scaleMinimum(34),
64 m_scaleMaximum(77), 65 m_scaleMaximum(77),
65 m_intelligentActions(true) 66 m_intelligentActions(true)
66 { 67 {
67 } 68 }
1301 1302
1302 if (x >= noteStartX - tol && x <= noteStartX + tol) closeToLeft = true; 1303 if (x >= noteStartX - tol && x <= noteStartX + tol) closeToLeft = true;
1303 if (x >= noteEndX - tol && x <= noteEndX + tol) closeToRight = true; 1304 if (x >= noteEndX - tol && x <= noteEndX + tol) closeToRight = true;
1304 if (y >= noteStartY - tol && y <= noteStartY + tol) closeToTop = true; 1305 if (y >= noteStartY - tol && y <= noteStartY + tol) closeToTop = true;
1305 if (y >= noteEndY - tol && y <= noteEndY + tol) closeToBottom = true; 1306 if (y >= noteEndY - tol && y <= noteEndY + tol) closeToBottom = true;
1306 1307
1308 // cerr << "FlexiNoteLayer::getRelativeMousePosition: close to: left " << closeToLeft << " right " << closeToRight << " top " << closeToTop << " bottom " << closeToBottom << endl;
1307 } 1309 }
1308 1310
1309 1311
1310 bool 1312 bool
1311 FlexiNoteLayer::editOpen(View *v, QMouseEvent *e) 1313 FlexiNoteLayer::editOpen(View *v, QMouseEvent *e)