Flyspray:: http://www.ribbonsoft.com/bugtracker/ Flyspray::QCAD Bugtracker: Recently opened tasks 2018-07-16T15:00:58Z FS#1783: RArc::splitAt(): fails in some cases http://www.ribbonsoft.com/bugtracker/index.php?do=details&task_id=1783 2018-07-16T15:00:58Z Lev Golod RArc::splitAt() works wrong in some cases.To reproduce execute this script: var arc = new RArc(new RVector(0, 0), 100, Math.PI*2, Math.PI/2, true); var points = []; points.push(arc.getPointAtPercent(1/3)); var arcs = arc.splitAt(points); if (arcs.length == 2) { qDebug("OK, arcs count:", arcs.length); } else { qDebug("FAILED, arcs count:", arcs.length); } arc.mirror(new RLine(0, 0, 0, 100)); points = []; points.push(arc.getPointAtPercent(1/3)); arcs = arc.splitAt(points); if (arcs.length == 2) { qDebug("OK, arcs count:", arcs.length); } else { qDebug("FAILED, arcs count:", arcs.length); } The first case split in two arcs, but the second splits in one arc only. I think the reason is the code in RArc::splitAt(): ... if (RMath::getAngleDifference180(a1, a2))*radius()<0.001) { continue; } ... The RMath::getAngleDifference180() return angle between -pi and pi so absolute value should be used. RArc::splitAt() works wrong in some cases.
To reproduce execute this script:

            var arc = new RArc(new RVector(0, 0), 100, Math.PI*2, Math.PI/2, true);
            var points = [];
            points.push(arc.getPointAtPercent(1/3));
            var arcs = arc.splitAt(points);
            if (arcs.length == 2) {
                qDebug("OK, arcs count:", arcs.length);
            } else {
                qDebug("FAILED, arcs count:", arcs.length);
            }

            arc.mirror(new RLine(0, 0, 0, 100));

            points = [];
            points.push(arc.getPointAtPercent(1/3));
            arcs = arc.splitAt(points);
            if (arcs.length == 2) {
                qDebug("OK, arcs count:", arcs.length);
            } else {
                qDebug("FAILED, arcs count:", arcs.length);
            }

The first case split in two arcs, but the second splits in one arc only.

I think the reason is the code in RArc::splitAt():

        ...
        if (RMath::getAngleDifference180(a1, a2))*radius()<0.001) {
            continue;
        }
        ...

The RMath::getAngleDifference180() return angle between -pi and pi so absolute value should be used.

]]>
FS#1782: Successive middle mouse button zoom in/out: delay between steps http://www.ribbonsoft.com/bugtracker/index.php?do=details&task_id=1782 2018-07-13T15:16:24Z Jean-François Lemaire I very much like the new middle mouse button zoom in/out and congratulate Andrew for implementing it so quickly but there&#8217;s an annoying delay that is necessary between successive zoom in/out actions. This is easily understood by comparing it to zooming in/out with the +/- keys. With the keyboard you can repeat zooms as quickly as the keyboard repeat rate allows; with the middle mouse button quick zooms are not possible. I very much like the new middle mouse button zoom in/out and congratulate Andrew for implementing it so quickly but there’s an annoying delay that is necessary between successive zoom in/out actions. This is easily understood by comparing it to zooming in/out with the +/- keys. With the keyboard you can repeat zooms as quickly as the keyboard repeat rate allows; with the middle mouse button quick zooms are not possible.

]]>
FS#1781: QCAD 3.21.2 crashes when selecting an entity in attached file http://www.ribbonsoft.com/bugtracker/index.php?do=details&task_id=1781 2018-07-10T21:04:33Z Jean-François Lemaire QCAD 3.21.2 x86_64 Linux crashes if I try to select any entity of the attached file. The qt4 legacy version is working fine. QCAD 3.21.2 x86_64 Linux crashes if I try to select any entity of the attached file. The qt4 legacy version is working fine.

]]>
FS#1780: QCad quits when you double-click a text http://www.ribbonsoft.com/bugtracker/index.php?do=details&task_id=1780 2018-07-11T19:14:45Z jose amaro QCad quits when you double-click a text; What&#8217;s wrong, QCad or file? QCad quits when you double-click a text; What’s wrong, QCad or file?

]]>
FS#1779: Layer list, block list, etc: add support for international characters when sorting http://www.ribbonsoft.com/bugtracker/index.php?do=details&task_id=1779 2018-07-09T10:32:19Z Jean-François Lemaire The attached screenshot will make clear what the problem is:&#8220;échelle&#8221; should be between &#8220;cotes&#8221; and &#8220;platines&#8221;, not at the bottom. &#8220;e&#8221; and &#8220;é&#8221; must be considered the same letter when ordering alphabetically. The attached screenshot will make clear what the problem is:
“échelle” should be between “cotes” and “platines”, not at the bottom. “e” and “é” must be considered the same letter when ordering alphabetically.

]]>
FS#1778: Draw > Point > Single Point: Exception http://www.ribbonsoft.com/bugtracker/index.php?do=details&task_id=1778 2018-07-06T09:15:31Z Andrew Exception due to invalid include path. Exception due to invalid include path.

]]>
FS#1777: Crash when pasting / importing drawing with missing image http://www.ribbonsoft.com/bugtracker/index.php?do=details&task_id=1777 2018-07-05T20:48:05Z Andrew Importing or pasting a drawing which references a non-existing image crashes. RGraphicsSceneDrawable or type image references deleted, temporary preview document through RImageData which leads to crash when trying to load the image. Importing or pasting a drawing which references a non-existing image crashes.

RGraphicsSceneDrawable or type image references deleted, temporary preview document through RImageData which leads to crash when trying to load the image.

]]>
FS#1776: Edit > Application Preferences: Tool Settings: cannot configure shortcuts http://www.ribbonsoft.com/bugtracker/index.php?do=details&task_id=1776 2018-07-03T16:02:54Z Andrew Multikey shortcuts are broken in Qt.QCAD needs its own implementation of shortcut handling which also affects shortcut configuration. Multikey shortcuts are broken in Qt.
QCAD needs its own implementation of shortcut handling which also affects shortcut configuration.

]]>
FS#1775: Viewports: images sometimes not clipped at viewport edge http://www.ribbonsoft.com/bugtracker/index.php?do=details&task_id=1775 2018-06-29T20:22:03Z Andrew See also:https://qcad.org/rsforum/viewtopic.php?f=89&amp;t=5657 See also:
https://qcad.org/rsforum/viewtopic.php?f=89&t=5657

]]>
FS#1774: Draw > Polyline > Morph: crash under macOS http://www.ribbonsoft.com/bugtracker/index.php?do=details&task_id=1774 2018-06-29T07:29:59Z Andrew Depolyment issue with qcaddwg plugin. Depolyment issue with qcaddwg plugin.

]]>