Flyspray:: Flyspray::QCAD: Recently opened tasks http://www.qcad.org/bugtracker/ 2016-09-23T11:29:41Z FS#1485: dxflib: Lines are on the wrong layer when processing dxf files with external tools 2016-09-23T11:29:41Z 2016-09-23T11:16:08Z

I create a drawing using QCAD which is stored using dxflib. For some reasons dxflib must be used. This drawing contains arcs and lines on a separate layer. If the dxf file is processed by an other tool only the arcs are referenced to the specific layer. The lines are referenced to the standard layer 0. It doesn’t matter if I’m using the community edition or the pro edition.

After a some investigations I found that the created dxf file is not correct. I manually corrected the dxf file and it works as it should.

For details please refer to the appended files. Take a look to the ENTITY section and the LINE entities, e.g. line 2370. It is just to swap two entities.

Thanks for support.

Stefan Aberfeld http://www.qcad.org/bugtracker/:1485
FS#1484: Dimensions: optionally use comma instead of dot 2016-09-21T10:43:51Z 2016-09-21T10:43:51Z

Use comma to display dimension labels.

Andrew http://www.qcad.org/bugtracker/:1484
FS#1483: Draw -> Polyline -> Create from Segments deletes a segment 2016-09-20T18:33:09Z 2016-09-20T18:28:29Z

With the attached DXF file, select Draw → Polyline → Create from Segments
(O, G) and click on the complex polyline inside the circle (eg on
the top left arc). Apolyline is created with a few segments,
and one or more segments are deleted!

Different segments are deleted depending on which segment is clicked.

Martin Ward http://www.qcad.org/bugtracker/:1483
FS#1482: FTBFS on FreeBSD 2016-09-19T13:13:12Z 2016-09-18T12:14:52Z

Git 3ed32041, FreeBSD 10.3, amd64

Qt had been updated from 5.5.1 to 5.6.1 just recently. This resulted in two FTBFSs:

- Missing script bindings for 5.6.1:

--- /dev/null
+++ b/src/3rdparty/qt-labs-qtscriptgenerator-5.6.1/qt-labs-qtscriptgenerator-5.6.1.pro
@@ -0,0 +1,4 @@
+include( ../../../shared.pri )
+
+SUBDIRS = ../qt-labs-qtscriptgenerator-5.5.0/qtbindings
+TEMPLATE = subdirs

After this,

- Project ERROR: Unknown module(s) in QT: webenginewidgets

--- a/shared.pri
+++ b/shared.pri
@@ -46,8 +46,8 @@ macx-ios-* {
 
 !r_mobile {
     greaterThan(QT_MAJOR_VERSION, 4) {
-        greaterThan(QT_MINOR_VERSION, 5) {
-            # Qt >= 5.6
+        greaterThan(QT_MINOR_VERSION, 6) {
+            # Qt >= 5.7
             QT += webenginewidgets
         }
         else {
Tamas TEVESZ http://www.qcad.org/bugtracker/:1482
FS#1481: Block List: update changes selected item 2016-09-16T14:11:08Z 2016-09-16T14:09:55Z

- Select a block in the block list.
- Toggle the visibility of another block or add a block, etc.
- Selected block changes

Andrew http://www.qcad.org/bugtracker/:1481
FS#1480: dwg2dwg: add command line switches to modify header variables 2016-09-16T09:51:33Z 2016-09-16T09:51:33Z

Add command line switches to dwg2dwg to change header variables during conversion (e.g. DIMASZ, DIMEXT, DIMTXT, ...)

Andrew http://www.qcad.org/bugtracker/:1480
FS#1479: Modify > Explode: too many segments for splines with large tolerance 2016-09-14T12:15:43Z 2016-09-14T12:15:05Z

Exploding splines creates more segments than necessary in some cases with very large tolerances.
The number of segments created should be the number of bezier spline segments times two.

Andrew http://www.qcad.org/bugtracker/:1479
FS#1478: compile qcad from git source problem 2016-09-12T20:06:32Z 2016-09-12T19:51:08Z

I am following the instructions for compiling qcad from source

http://www.qcad.org/en/component/content/article/78-qcad/111-qcad-compilation-from-sources

I am using fedora 24 and qt4

git clone https://github.com/qcad/qcad

cd qcad
qmake-qt4 -r this step ok
make release this step fails

RSettings.cpp: In static member function ‘static QStringList RSettings::getPrinterNames()’:
RSettings.cpp:722:12: error: ‘availablePrinterNames’ is not a member of ‘QPrinterInfo’

   return QPrinterInfo::availablePrinterNames();
          ^~~~~~~~~~~~

RSettings.cpp: In static member function ‘static QString RSettings::getDefaultPrinterName()’:
RSettings.cpp:726:12: error: ‘defaultPrinterName’ is not a member of ‘QPrinterInfo’

   return QPrinterInfo::defaultPrinterName();
          ^~~~~~~~~~~~

Makefile.Release:2505: recipe for target ‘release/RSettings.o’ failed
make[3]: *** [release/RSettings.o] Error 1

patrick http://www.qcad.org/bugtracker/:1478
FS#1477: exception in Viewport.js: sprintf not defined 2016-09-12T08:09:31Z 2016-09-11T02:32:17Z

Git 21d95c48, Linux x64, Qt5

Starting QCAD causes it to crash:

QCAD version  3.15.5.4
02:17:30: Debug:    RDxfPlugin::init
02:17:30: Debug:    RExamplePlugin::init
02:17:30: Debug:    TransactionListenerPlugin::init
02:17:31: Debug:    TIMER:  187000000 ns ( 187 ms )  -  "loading add-ons"
02:17:33: Debug:    TIMER:  1492000000 ns ( 1492 ms )  -  "initializing add-ons"
02:17:35: Debug:    TransactionListenerPlugin::postInit
02:17:35: Debug:    got transaction
Warning:  RScriptHandlerEcma::eval: script engine exception:  "ReferenceError: Can't find variable: sprintf"
Warning:  "<anonymous>(widget = RMdiChildQt(0x4e90100), documentInterface = RDocumentInterface(0x4e934e0)) \
        at /home/ice/w/qcad/qcad/scripts/Widgets/Viewport/Viewport.js:52\n<anonymous>() at \
        /home/ice/w/qcad/qcad/scripts/File/OpenFile/../NewFile/NewFile.js:224\n<anonymous>() at \
        /home/ice/w/qcad/qcad/scripts/File/OpenFile/../NewFile/NewFile.js:87\n<eval>() at 1\nslotTrigger() at \
        -1\nopenFiles(args = , createNew = true) at scripts/autostart.js:204\nmain() \
        at scripts/autostart.js:743\n<global>() at scripts/autostart.js:780"
Warning:  RScriptHandlerEcma::eval: script engine exception:  "ReferenceError: Can't find variable: sprintf"
Warning:  "<anonymous>(widget = RMdiChildQt(0x4e90100), documentInterface = RDocumentInterface(0x4e934e0)) \
        at /home/ice/w/qcad/qcad/scripts/Widgets/Viewport/Viewport.js:52\n<anonymous>() \
        at /home/ice/w/qcad/qcad/scripts/File/OpenFile/../NewFile/NewFile.js:224\n<anonymous>() \
        at /home/ice/w/qcad/qcad/scripts/File/OpenFile/../NewFile/NewFile.js:87\n<eval>() at 1\nslotTrigger() \
        at -1\nopenFiles(args = , createNew = true) at scripts/autostart.js:204\nmain() \
        at scripts/autostart.js:743\n<global>() at scripts/autostart.js:780"
Warning:  At least one uncaught exception:
Warning:  "<anonymous>(widget = RMdiChildQt(0x4e90100), documentInterface = RDocumentInterface(0x4e934e0)) at \
        /home/ice/w/qcad/qcad/scripts/Widgets/Viewport/Viewport.js:52\n<anonymous>() at \
        /home/ice/w/qcad/qcad/scripts/File/OpenFile/../NewFile/NewFile.js:224\n<anonymous>() at \
        /home/ice/w/qcad/qcad/scripts/File/OpenFile/../NewFile/NewFile.js:87\n<eval>() at 1\nslotTrigger() at \
        -1\nopenFiles(args = , createNew = true) at scripts/autostart.js:204\nmain() at \
        scripts/autostart.js:743\n<global>() at scripts/autostart.js:780"
02:17:35: Debug:    "<global>() at 52"

Seems to be a fallout following a1941e2 (removal of sprintf.js from library includes).

Fix:

diff --git a/scripts/Widgets/Viewport/Viewport.js b/scripts/Widgets/Viewport/Viewport.js
index d9bc286..10b9b18 100644
--- a/scripts/Widgets/Viewport/Viewport.js
+++ b/scripts/Widgets/Viewport/Viewport.js
@@ -17,6 +17,8 @@
  * along with QCAD.
  */
 
+include("scripts/sprintf.js");
+
 if (new QFileInfo(autoPath("scripts/Navigation/DefaultNavigation/DefaultNavigation.js")).exists()) {
     include("scripts/Navigation/DefaultNavigation/DefaultNavigation.js");
 }
Tamas TEVESZ http://www.qcad.org/bugtracker/:1477
FS#1476: Draw > Circle > 2 Tangents and Radius: exception with arcs and circle entities 2016-09-07T13:36:26Z 2016-09-07T13:34:12Z

Draw > Circle > 2 Tangents and Radius
Choose two arcs or two circles as tangential entities.

Andrew http://www.qcad.org/bugtracker/:1476