Flyspray:: http://www.qcad.org/bugtracker/ Flyspray::QCAD: Recently opened tasks 2016-09-28T12:16:25Z FS#1486: objects layers confusion with windows clipboard copy/paste http://www.qcad.org/bugtracker/index.php?do=details&task_id=1486 2016-09-28T12:16:25Z pasquale Hi, since the 3.9.1 (now 3.15.5) version I have this problem: when I copy / paste objects with the windows clipboard (ctr c / ctr v), some layers of pasted objects are lost.The layers of the new objects are exchanged casually.This is serious for a fee CAD design, i know others free with less hassle.Thanks Pasquale my OS version:Windows 7 professional service pack 1 - 64-bit my QCAD version:Version:3.15.5.0 (3.15.5)Internet:QCAD.orgDate build:Aug 19, 2016revision:15ef1a1Qt version:5.5.1Architecture:x86_64Compiler:MSVC ++ 12.0 (2013) Hi, since the 3.9.1 (now 3.15.5) version I have this problem: when I copy / paste objects with the windows clipboard (ctr c / ctr v), some layers of pasted objects are lost.
The layers of the new objects are exchanged casually.
This is serious for a fee CAD design, i know others free with less hassle.
Thanks Pasquale

my OS version:
Windows 7 professional service pack 1 - 64-bit

my QCAD version:
Version:
3.15.5.0 (3.15.5)
Internet:
QCAD.org
Date build:
Aug 19, 2016
revision:
15ef1a1
Qt version:
5.5.1
Architecture:
x86_64
Compiler:
MSVC ++ 12.0 (2013)

]]>
FS#1485: dxflib: Lines are on the wrong layer when processing dxf files with external tools http://www.qcad.org/bugtracker/index.php?do=details&task_id=1485 2016-09-23T11:29:41Z Stefan Aberfeld 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. 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.

]]>
FS#1484: Dimensions: optionally use comma instead of dot http://www.qcad.org/bugtracker/index.php?do=details&task_id=1484 2016-09-21T10:43:51Z Andrew Use comma to display dimension labels. Use comma to display dimension labels.

]]>
FS#1483: Draw -> Polyline -> Create from Segments deletes a segment http://www.qcad.org/bugtracker/index.php?do=details&task_id=1483 2016-09-27T10:55:41Z Martin Ward With the attached DXF file, select Draw → Polyline → Create from Segments(O, G) and click on the complex polyline inside the circle (eg onthe 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. 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.

]]>
FS#1482: FTBFS on FreeBSD http://www.qcad.org/bugtracker/index.php?do=details&task_id=1482 2016-09-19T13:13:12Z Tamas TEVESZ 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 { 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 {
]]>
FS#1481: Block List: update changes selected item http://www.qcad.org/bugtracker/index.php?do=details&task_id=1481 2016-09-16T14:11:08Z Andrew - Select a block in the block list.- Toggle the visibility of another block or add a block, etc.- Selected block changes - Select a block in the block list.
- Toggle the visibility of another block or add a block, etc.
- Selected block changes

]]>
FS#1480: dwg2dwg: add command line switches to modify header variables http://www.qcad.org/bugtracker/index.php?do=details&task_id=1480 2016-09-16T09:51:33Z Andrew Add command line switches to dwg2dwg to change header variables during conversion (e.g. DIMASZ, DIMEXT, DIMTXT, ...) Add command line switches to dwg2dwg to change header variables during conversion (e.g. DIMASZ, DIMEXT, DIMTXT, ...)

]]>
FS#1479: Modify > Explode: too many segments for splines with large tolerance http://www.qcad.org/bugtracker/index.php?do=details&task_id=1479 2016-09-14T12:15:43Z Andrew 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. 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.

]]>
FS#1478: compile qcad from git source problem http://www.qcad.org/bugtracker/index.php?do=details&task_id=1478 2016-09-12T20:06:32Z patrick 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 qcadqmake-qt4 -r this step okmake 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’ failedmake[3]: *** [release/RSettings.o] Error 1 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

]]>
FS#1477: exception in Viewport.js: sprintf not defined http://www.qcad.org/bugtracker/index.php?do=details&task_id=1477 2016-09-12T08:09:31Z Tamas TEVESZ 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"); } 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");
 }
]]>