Commit 0275d34d authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

QmlDesigner: Fix GCC 5.2.1 warning in release build

warning: 't' may be used uninitialized in this function [-Wmaybe-uninitialized]

Change-Id: Ic9f87bdb8da36db5371349fb1987d2e9fe66665e
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <>
parent d5ff81e1
......@@ -885,7 +885,7 @@ void PathItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
if (pickedControlPoint.isEditPoint()) {
createEditPointContextMenu(pickedControlPoint, event->screenPos());
} else {
double t;
double t = 0.0;
CubicSegment minimumDistanceSegment = getMinimumDistanceSegment(event->pos(), m_cubicSegments, 20., &t);
if (minimumDistanceSegment.isValid())
createCubicSegmentContextMenu(minimumDistanceSegment, event->screenPos(), t);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment