Author: Niall Creech Description: Fixes non existent call to qMax(qreal, double) on armel bug by casting double arg to qreal Ubuntu-Bug: https://bugs.launchpad.net/ubuntu/+source/pencil/+bug/642117 Index: kamoso-1.0.5/src/kamoso.cpp Index: pencil-0.4.4b/src/graphics/vector/vectorimage.cpp =================================================================== --- pencil-0.4.4b.orig/src/graphics/vector/vectorimage.cpp 2010-09-19 13:49:29.635388320 +0100 +++ pencil-0.4.4b/src/graphics/vector/vectorimage.cpp 2010-09-19 13:49:51.082583853 +0100 @@ -175,7 +175,7 @@ void VectorImage::addCurve(BezierCurve &newCurve, qreal factor) { if(newCurve.getVertexSize() < 1) return; // security - a new curve should have a least 2 vertices - qreal tol = qMax(newCurve.getWidth() / factor, 3.0 / factor); // tolerance for taking the intersection as an existing vertex on a curve + qreal tol = qMax(newCurve.getWidth() / factor, qreal(3.0 / factor)); // tolerance for taking the intersection as an existing vertex on a curve //qDebug() << "tolerance" << tol; // finds if the new curve interesects itself for(int k=0; k < newCurve.getVertexSize(); k++) { // for each cubic section of the new curve