From bd2e1063e33b1fafcc79a18b703b032cf9b62b02 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 5 Oct 2015 11:58:54 +0300 Subject: [PATCH] Return empty string if relative path to measurements is empty. --HG-- branch : develop --- src/app/valentina/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index a5de2ce02..d6bd6fcec 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -350,7 +350,7 @@ QString MainWindow::AbsoluteMPath(const QString &patternPath, const QString &rel } else { - if (QFileInfo(relativeMPath).isAbsolute()) + if (relativeMPath.isEmpty() || QFileInfo(relativeMPath).isAbsolute()) { return relativeMPath; }