From f17d9f0057c0b735f16ae1896850ed18bfca8592 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Tue, 27 Sep 2011 23:21:30 +0200 Subject: This should fix the double C:/C:/ bug when dropping a file into the editor under Windows, reported by Stony Smith diff --git a/src/mainwin.cc b/src/mainwin.cc index 56502f2..51e85e7 100644 --- a/src/mainwin.cc +++ b/src/mainwin.cc @@ -1728,7 +1728,7 @@ void MainWindow::dropEvent(QDropEvent *event) for (int i = 0; i < urls.size(); i++) { if (urls[i].scheme() != "file") continue; - openFile(urls[i].path()); + openFile(urls[i].toLocalFile()); } clearCurrentOutput(); } -- cgit v0.10.1 From 396fea7ecd90af1bd5b06143aeeff05abb7e3c0a Mon Sep 17 00:00:00 2001 From: Brad Pitcher Date: Tue, 27 Sep 2011 22:42:23 -0700 Subject: fixes assertion error noticed in example 21 diff --git a/src/dxfdata.h b/src/dxfdata.h index bada031..79bfba9 100644 --- a/src/dxfdata.h +++ b/src/dxfdata.h @@ -30,7 +30,7 @@ public: } }; - std::vector points; + std::vector > points; std::vector paths; std::vector dims; -- cgit v0.10.1 From 78c3cad02388172bda96bab73c15a08d7f9a21cd Mon Sep 17 00:00:00 2001 From: Brad Pitcher Date: Tue, 27 Sep 2011 22:55:58 -0700 Subject: remove the unnecessary prefix diff --git a/src/dxfdata.h b/src/dxfdata.h index 79bfba9..d24541c 100644 --- a/src/dxfdata.h +++ b/src/dxfdata.h @@ -30,7 +30,7 @@ public: } }; - std::vector > points; + std::vector > points; std::vector paths; std::vector dims; -- cgit v0.10.1