diff -Nru ksnip-1.3.0/debian/changelog ksnip-1.3.1/debian/changelog --- ksnip-1.3.0/debian/changelog 2017-03-31 20:00:44.000000000 +0000 +++ ksnip-1.3.1/debian/changelog 2017-04-01 06:07:49.000000000 +0000 @@ -1,3 +1,9 @@ +ksnip (1.3.1-1dhor~zesty) zesty; urgency=medium + + * missing library fix + + -- Dariusz Duma Sat, 01 Apr 2017 08:07:02 +0200 + ksnip (1.3.0-1dhor~zesty) zesty; urgency=medium * Initial release diff -Nru ksnip-1.3.0/README.md ksnip-1.3.1/README.md --- ksnip-1.3.0/README.md 2017-03-29 18:47:31.000000000 +0000 +++ ksnip-1.3.1/README.md 2017-03-31 16:42:02.000000000 +0000 @@ -1,6 +1,6 @@ # ksnip -Version v1.3.0 +Version v1.3.1 Ksnip is a Qt 4.8 based Linux screenshot tool inspired by the Window Snipping Tool. @@ -50,4 +50,4 @@ ### Other -For Gentoo, check out this link https://github.com/mrbitt/mrbit-overlay/blob/master/x11-apps/ksnip/ksnip-1.2.1.ebuild +For Gentoo, check out this link https://github.com/mrbitt/mrbit-overlay/blob/master/x11-apps/ksnip/ksnip-1.3.0.ebuild diff -Nru ksnip-1.3.0/src/main.cpp ksnip-1.3.1/src/main.cpp --- ksnip-1.3.0/src/main.cpp 2017-03-29 18:47:31.000000000 +0000 +++ ksnip-1.3.1/src/main.cpp 2017-03-31 16:42:02.000000000 +0000 @@ -14,7 +14,7 @@ app.setOrganizationName("ksnip"); app.setOrganizationDomain("ksnip.local"); app.setApplicationName("ksnip"); - app.setApplicationVersion("v1.3.0"); + app.setApplicationVersion("v1.3.1"); CmdParser parser; // Add command line options diff -Nru ksnip-1.3.0/src/painter/PainterEllipse.cpp ksnip-1.3.1/src/painter/PainterEllipse.cpp --- ksnip-1.3.0/src/painter/PainterEllipse.cpp 2017-03-29 18:47:31.000000000 +0000 +++ ksnip-1.3.1/src/painter/PainterEllipse.cpp 2017-03-31 16:42:02.000000000 +0000 @@ -18,12 +18,14 @@ */ #include "PainterEllipse.h" +#include namespace { -qreal smallesLenght(qreal lenght1, qreal lenght2) + +float smallesLenght(float lenght1, float lenght2) { - qreal l = (std::abs(lenght1) < std::abs(lenght2)) ? std::abs(lenght1) : std::abs(lenght2); + float l = (std::abs(lenght1) < std::abs(lenght2)) ? std::abs(lenght1) : std::abs(lenght2); return (lenght1 < 0) ? -l : l; } diff -Nru ksnip-1.3.0/src/painter/PainterPath.cpp ksnip-1.3.1/src/painter/PainterPath.cpp --- ksnip-1.3.0/src/painter/PainterPath.cpp 2017-03-29 18:47:31.000000000 +0000 +++ ksnip-1.3.1/src/painter/PainterPath.cpp 2017-03-31 16:42:02.000000000 +0000 @@ -23,6 +23,7 @@ */ #include "PainterPath.h" +#include namespace { @@ -30,7 +31,7 @@ { float hd = (pt1.x() - pt2.x()) * (pt1.x() - pt2.x()); float vd = (pt1.y() - pt2.y()) * (pt1.y() - pt2.y()); - return sqrtf(hd + vd); + return std::sqrt(hd + vd); } QPointF getLineStart(const QPointF& pt1, const QPointF& pt2) diff -Nru ksnip-1.3.0/src/painter/PainterRect.cpp ksnip-1.3.1/src/painter/PainterRect.cpp --- ksnip-1.3.0/src/painter/PainterRect.cpp 2017-03-29 18:47:31.000000000 +0000 +++ ksnip-1.3.1/src/painter/PainterRect.cpp 2017-03-31 16:42:02.000000000 +0000 @@ -18,12 +18,13 @@ */ #include "PainterRect.h" +#include namespace { -qreal smallesLenght(double lenght1, double lenght2) +float smallesLenght(float lenght1, float lenght2) { - qreal l = (std::abs(lenght1) < std::abs(lenght2)) ? std::abs(lenght1) : std::abs(lenght2); + float l = (std::abs(lenght1) < std::abs(lenght2)) ? std::abs(lenght1) : std::abs(lenght2); return (lenght1 < 0) ? -l : l; } diff -Nru ksnip-1.3.0/src/widgets/PainterSettingsPicker.cpp ksnip-1.3.1/src/widgets/PainterSettingsPicker.cpp --- ksnip-1.3.0/src/widgets/PainterSettingsPicker.cpp 2017-03-29 18:47:31.000000000 +0000 +++ ksnip-1.3.1/src/widgets/PainterSettingsPicker.cpp 2017-03-31 16:42:02.000000000 +0000 @@ -18,6 +18,7 @@ */ #include "PainterSettingsPicker.h" +#include PainterSettingsPicker::PainterSettingsPicker(QWidget* parent, int colons) : QToolButton(parent), @@ -590,7 +591,7 @@ int columns = mColorColumns; if (columns == -1) { - columns = (int) ceil(sqrt((float) mColorItems.count())); + columns = (int) std::ceil(std::sqrt((float) mColorItems.count())); } // When the number of columns grows, the number of rows will