Commit 8da7027f authored by Victor Yacovlev's avatar Victor Yacovlev

Turtle: Fixed -Werror build

parent c4e3044a
......@@ -187,17 +187,17 @@ showCurTurtle();
}
void turtle::rotateImages()
{
//qDebug()<<"Ang"<<ang;
if((!ang==60)&&(!ang==120)&&(!ang==240)&&(!ang==320)){
t1->setTransform(QTransform().translate(AncX*zoom, AncY*zoom).rotate(ang).translate(-AncX*zoom, -AncY*zoom));
// t1->setRotation(ang);
}else
{
//qDebug()<<"Ang bugfix"<<ang;
t1->setTransform(QTransform().translate(AncX*zoom, AncY*zoom).rotate(ang-1).translate(-AncX*zoom, -AncY*zoom));
// t1->setRotation(ang);
};
t1->scale(zoom,zoom);
//qDebug()<<"Ang"<<ang;
if ( ang!=60 && ang!=120 && ang!=240 && ang!=320 ) {
t1->setTransform(QTransform().translate(AncX*zoom, AncY*zoom).rotate(ang).translate(-AncX*zoom, -AncY*zoom));
// t1->setRotation(ang);
}else
{
//qDebug()<<"Ang bugfix"<<ang;
t1->setTransform(QTransform().translate(AncX*zoom, AncY*zoom).rotate(ang-1).translate(-AncX*zoom, -AncY*zoom));
// t1->setRotation(ang);
};
t1->scale(zoom,zoom);
......
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