Thanks for the replys guys. As I would like to understand the bug first I will try the workarounds after that.
After you pointed me to the sorting, I did some more research.
Can someone explain the strange stepping through the code in QtCreator?
(the order of the steps when I use "Step Over" are placed at the end of the code lines)
case RS2::EntityCircle:
a = center.angleTo(*v); 1.
dist = reversed?
fmod(sa - a + 2.*M_PI,2.*M_PI): 3.
fmod(a - sa + 2.*M_PI,2.*M_PI); 2. 4. 6.
// qDebug("angle centerTostartPoint: %f",sa);
// qDebug("angle centerToNextIntersection: %f",a);
// qDebug("distance: %f",dist);
qDebug("counted the useres: %d",v.use_count()); 5. 7.
break;
case RS2::EntityCircle:
a = center.angleTo(*v); 1.
dist = reversed?
fmod(sa - a + 2.*M_PI,2.*M_PI): 3.
fmod(a - sa + 2.*M_PI,2.*M_PI); 2. 4. 6.
// qDebug("angle centerTostartPoint: %f",sa);
// qDebug("angle centerToNextIntersection: %f",a);
// qDebug("distance: %f",dist);
qDebug("counted the useres: %d",v.use_count()); 5. 7.
break;
To copy to clipboard, switch view to plain text mode
I would have expected the following order of the stepping:
line2
line5 (until now that's the same what QtCreator does; reversed is false)
line9
Bookmarks