diff -Nru photoflare-1.5.6/debian/changelog photoflare-1.5.6.1/debian/changelog --- photoflare-1.5.6/debian/changelog 2018-11-24 14:25:16.000000000 +0000 +++ photoflare-1.5.6.1/debian/changelog 2018-12-06 18:39:11.000000000 +0000 @@ -1,3 +1,10 @@ +photoflare (1.5.6.1-1) unstable; urgency=medium + + * New upstream release. + * Add patch to fix FTBFS on Hurd. + + -- Dylan Aïssi Thu, 06 Dec 2018 19:39:11 +0100 + photoflare (1.5.6-1) unstable; urgency=medium * New upstream release. diff -Nru photoflare-1.5.6/debian/patches/ftbfs_hurd.patch photoflare-1.5.6.1/debian/patches/ftbfs_hurd.patch --- photoflare-1.5.6/debian/patches/ftbfs_hurd.patch 1970-01-01 00:00:00.000000000 +0000 +++ photoflare-1.5.6.1/debian/patches/ftbfs_hurd.patch 2018-12-06 18:39:11.000000000 +0000 @@ -0,0 +1,18 @@ +Author: Dylan Aïssi +Description: Fix FTBFS on Hurd +Last-Update: 2018-12-06 +Forwarded: TODO + +--- a/PhotoFlare.pro ++++ b/PhotoFlare.pro +@@ -26,8 +26,8 @@ + RC_ICONS += assets/pixmaps/logo.ico + } + +-# Project settings for Linux. Adjust the paths as needed on your system. +-linux { ++# Project settings for Linux and Hurd. Adjust the paths as needed on your system. ++linux|hurd { + INCLUDEPATH += /usr/include/GraphicsMagick + LIBS += -L/usr/lib -lGraphicsMagick++ + } diff -Nru photoflare-1.5.6/debian/patches/series photoflare-1.5.6.1/debian/patches/series --- photoflare-1.5.6/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ photoflare-1.5.6.1/debian/patches/series 2018-12-06 18:39:11.000000000 +0000 @@ -0,0 +1 @@ +ftbfs_hurd.patch diff -Nru photoflare-1.5.6/.github/README.md photoflare-1.5.6.1/.github/README.md --- photoflare-1.5.6/.github/README.md 2018-11-23 15:24:04.000000000 +0000 +++ photoflare-1.5.6.1/.github/README.md 2018-12-02 20:43:48.000000000 +0000 @@ -1,5 +1,6 @@ # PhotoFlare +[![DebianBadge](https://badges.debian.net/badges/debian/testing/photoflare/version.svg)](https://packages.debian.org/testing/photoflare) [![GitHub release](https://img.shields.io/badge/Release-1.5.6-green.svg)](https://github.com/PhotoFlare/photoflare/releases) [![License: GPL v3+](https://img.shields.io/badge/License-GPL-yellowgreen.svg)](https://www.gnu.org/licenses/gpl-3.0) [![Build Status](https://travis-ci.org/PhotoFlare/photoflare.svg?branch=master)](https://travis-ci.org/PhotoFlare/photoflare) diff -Nru photoflare-1.5.6/src/dialogs/aboutdialog.cpp photoflare-1.5.6.1/src/dialogs/aboutdialog.cpp --- photoflare-1.5.6/src/dialogs/aboutdialog.cpp 2018-11-23 15:24:04.000000000 +0000 +++ photoflare-1.5.6.1/src/dialogs/aboutdialog.cpp 2018-12-02 20:43:48.000000000 +0000 @@ -43,7 +43,8 @@ "

Special thanks" "
I would like to thank Samantha for being an absolute gem of a person. You light up my life and I'm so glad to have found you.")); - ui->appName->setText(qApp->applicationName()); + QString appName = qApp->applicationName().replace("p","P"); + ui->appName->setText(appName); QFont font; font.setPointSize(14); ui->appName->setFont(font); diff -Nru photoflare-1.5.6/src/main.cpp photoflare-1.5.6.1/src/main.cpp --- photoflare-1.5.6/src/main.cpp 2018-11-23 15:24:04.000000000 +0000 +++ photoflare-1.5.6.1/src/main.cpp 2018-12-02 20:43:48.000000000 +0000 @@ -27,12 +27,12 @@ if(!app.isRunning()) { - app.setApplicationName(QObject::tr("PhotoFlare")); - app.setApplicationVersion(QObject::tr("1.5.6")); + app.setApplicationName(QObject::tr("photoflare")); + app.setApplicationVersion(QObject::tr("1.5.6.1")); app.setOrganizationDomain(QObject::tr("photoflare.io")); // Setup Default settings - QString loc = QStandardPaths::locate(QStandardPaths::ConfigLocation, QString(), QStandardPaths::LocateDirectory)+"photoflare"; + QString loc = QStandardPaths::locate(QStandardPaths::ConfigLocation, QString(), QStandardPaths::LocateDirectory)+"photoflare.io"; if(QDir(loc).exists() == false) { SETTINGS->setDefaultSettings(); @@ -68,8 +68,9 @@ } QTranslator translator; - QStringList paths = QStandardPaths::standardLocations(QStandardPaths::DataLocation); + app.installTranslator(&translator); + QStringList paths = QStandardPaths::standardLocations(QStandardPaths::DataLocation); for(int i = 0;i < paths.length(); i++) { QFileInfo check_file(paths[i]+"/languages/"+SETTINGS->getUserLanguage()+".qm"); //for installers @@ -80,7 +81,6 @@ //translator.load(SETTINGS->getUserLanguage()+".qm", "languages/"); //local builds } } - app.installTranslator(&translator); MainWindow w; w.show(); diff -Nru photoflare-1.5.6/src/tools/TextTool.cpp photoflare-1.5.6.1/src/tools/TextTool.cpp --- photoflare-1.5.6/src/tools/TextTool.cpp 2018-11-23 15:24:04.000000000 +0000 +++ photoflare-1.5.6.1/src/tools/TextTool.cpp 2018-12-02 20:43:48.000000000 +0000 @@ -54,7 +54,7 @@ d->position = position; QFontMetrics fontMetrics(font); - d->textRect = fontMetrics.boundingRect(d->textRect ,Qt::TextSingleLine, text); + d->textRect = fontMetrics.boundingRect(d->textRect ,Qt::TextLongestVariant, text); if(d->position == "left") { diff -Nru photoflare-1.5.6/src/toolSettings/erasersettingswidget.ui photoflare-1.5.6.1/src/toolSettings/erasersettingswidget.ui --- photoflare-1.5.6/src/toolSettings/erasersettingswidget.ui 2018-11-23 15:24:04.000000000 +0000 +++ photoflare-1.5.6.1/src/toolSettings/erasersettingswidget.ui 2018-12-02 20:43:48.000000000 +0000 @@ -70,7 +70,7 @@ - 0 + 1 diff -Nru photoflare-1.5.6/src/widgets/PaintWidget.cpp photoflare-1.5.6.1/src/widgets/PaintWidget.cpp --- photoflare-1.5.6/src/widgets/PaintWidget.cpp 2018-11-23 15:24:04.000000000 +0000 +++ photoflare-1.5.6.1/src/widgets/PaintWidget.cpp 2018-12-02 20:43:48.000000000 +0000 @@ -48,7 +48,6 @@ this->image = image; q->setSceneRect(image.rect()); canvas = addPixmap(QPixmap::fromImage(image)); - canvas->setTransformationMode(Qt::SmoothTransformation); q->setStyleSheet("background-color: rgb(128, 128, 128);"); }