QCAD Bugtracker

QCAD - 2D CAD System.

Click here for a documentation of the DokuWiki formatting syntax that can be used in reports

Please search for existing tasks (also closed ones) before opening a new task.

Please make sure that you are using the latest Version of QCAD before posting a bug (menu Help > Check for Updates)

ID  descCategoryTask TypeSeveritySummaryStatusProgress
 1572 QCAD Community EditionBug ReportLow Dimension font not set to "Standard" when importing thr ...Closed
100%
Task Description

Since updating to QCAD 3.16 on MacOS, my dimension font face suddenly changed to something very unattractive and I can’t figure out how to reset it. I tried deleting QCAD and all references to it in ~/Library and then reinstalling, but no luck. Something weird has gone wrong with QCAD’s fonts.

The font change has made it impossible to open and redraw many DXF files because the new font face is larger and wider spaced and it ruins the layout of many documents.

Attached is an example of what the same DXF file looked like in the prior QCAD version, and the new version. No change to the DXF file.

Dan.

 1568 QCAD (main)Bug ReportLow Issues: Snaps, Trim, Green selection tool Closed
100%
Task Description

Hello,

There is some issues with the snap tool and the selection tool.The trim button only trims some lines but not all.

1. The snap tool does not let me snap to certain things when i select something. For example i will select a box and i will try to extend the corner to another entities corner but the snap is not there so its free and thus not accurate.

2. For some reason the selection tool does not allow me to select certain things. If i have two boxes overlapping and i use the selection tool (from right to left “green selection box”) it does not allow me to select what i want i have to actually click it. This is annoying when it comes to selecting specific things.

3. The trim tool does not work properly.If i want to trim the inside of a cross hair or such, it only allows me to trim the inside of one line and if i try to trim the other it deletes the complete line.

Please fix as soon as possible. Thanks

 1560 QCAD (main)Bug ReportHigh Main menu not selectable (Ubuntu 16.04, Unity) Closed
100%
Task Description

The main menu bar does not allow any selections, there is not even an underscored shortcut character shown.

 1551 QCAD (main)Bug ReportLow File > Bitmap Export: exception when image size too lar ...Closed
100%
Task Description

Hi friends,

I have this traceback with my Qcad from ppa for linux, to export in png image:
Warning: libpng warning: Image width is zero in IHDR
Warning: libpng warning: Image height is zero in IHDR
libpng error: Invalid IHDR data
Error: cannot save file: /home/patrinux/Bureau/IMAGE.png
Error: Unknown error
Debug: got transaction
Warning: RScriptHandlerEcma::eval: script engine exception: “Error: :-1:-1: Wrong number/types of arguments for RMainWindowQt.handleUserWarning().
<native>() at -1
<anonymous>() at scripts/File/BitmapExport/BitmapExport.js:56
<native>(RActionAdapter(0x26d1ea0)) at -1
<global>() at 1” Warning: “<anonymous>()@scripts/File/BitmapExport/BitmapExport.js:56” Debug: got transaction

Impossible to obtain an png image, and others too. I am on Linux Mint Serena 64B alias Ubuntu Xenial 16.04. Qcad last release:

Version :
3.16.4.4 (3.16.4.4)
Internet :
QCAD.org
Date de fabrication :
Jan 26 2017
Révision :

Qt Version :
4.8.7
Architecture :
x86_64
Compiler :
gcc 5.4.0

 1534 QCAD (main)SuggestionLow Headless Styling Closed
100%
Task Description

Since the launcher batch no longer requests “-style plastique” QT wants to apply the native style of the desktop environment. This fails on a headless system (or where the current user has no graphical shell to connect to) with the message “Gtk-WARNING **: cannot open display: “. Fortunately, QT provides a workaround in addtion to the new “platform=offscreen” flag.

In the tools that set -no-gui, beforehand export these variables into the environment

export QT_STYLE_OVERRIDE=""
export QT_QPA_PLATFORM=offscreen
export DISPLAY=""

PS: QT-offscreen will not find fonts; unfortunately the workaround only allows for a single directory to search them (I need helvetica):

export QT_QPA_FONTDIR="/usr/local/share/fonts/type1"

Maybe that should get reported upstream, so that like LD_LIBRARY_PATH several directories could be specified.

 1516 QCAD (main)SuggestionLow QT style on Linux Closed
100%
Task Description

The startup script still forces a QT-style; Getting bored of that one, qcad runs fine with the system default style - probably that was a qt4 thing, that can be removed, so it blends better with the DE?

18c18 /opt/qcad/qcad
< LD_LIBRARY_PATH=”$DIR” “$binary” -style plastique “$@” —

LD_LIBRARY_PATH=”$DIR” “$binary” “$@”
 1508 QCAD (main)Bug ReportLow QCAD CE: Subscript and superscript formatting lost when ...Closed
100%
Task Description

When multiple superscripts or subscripts are used in a text field, re-opening the saved dxf file will fail to render all but the first super/subscript element. As per attached example. Bug occurs on all Mac OS X from Mavericks onward.

Minimal reproducible steps:
1. Open new document in QCAD
2. Add a text object
3. Make part of the text sub or super-script
4. Make another part of the text also sub/superscript, with at least one ‘normal’ character between the two sub/superscripts
5. Save file and close it. Don’t have to quit QCAD.
6. Reopen the file. Voila, all but the first sub/superscript element is broken.

Dan.

ps. QCAD is a pretty great piece of software, nice work all.

 1492 QCAD (main)Bug ReportHigh Crash when selecting polygon Closed
100%
Task Description

When trying to select the innermost square (created as a polygon) - Qcad immediately crashes.

Selection can be either a box select or by clicking on the polygon.

This happened with the latest (3v15.5.0) QCAD/CAM Pro on Linux
I have not attempted to verify problem on windows.

 1328 QCAD (main)ReleaseLow Windows 64bit install dir Closed
100%
Task Description

I only noticed today (perhaps they were available earlier?) that there are 64 bit binaries for windows; I suppose these are true 64 bit.

Yet, the installer prompts me to put them into “Programs (x86)”, where all the 32bit software lives, I guess - this seems to be a pure convention though, the application runs just fine.

Maybe the reason is, that the 32bit version was installed before; Maybe it should change? Maybe it should stay, so that there are not two?

 1327 WebsiteBug ReportLow qcad.org vs. ribbonsoft.com Closed
100%
Task Description

In the head of the new task form there is a “search for existing…” link to ribbonsoft.com even though I am browsing flyspray on qcad.org; maybe this can be made a relative link?

 1320 QCAD (main)Bug ReportLow QFileDialog slow on network drives Closed
100%
Task Description

QFileDialog should use the DontUseCustomDirectoryIcons flag; not much may be lost, performance should increase orders of magnitude for most – https://codereview.qt-project.org/#/c/54983/

 1295 QCAD (main)Feature RequestLow Un*x Manual Page Closed
100%
Task Description

Dear Andrew, this might seem an obsolete feature, though I recently tried to look it up, the man-page ;) So attached a quick shot; please use if you like and do not frown the additional maintenance. (quick test: man -l /tmp/qcad.1)

 1294 dxflibBug ReportMedium Hatches scale differently now from earlier releases Closed
100%
Task Description

Something with hatching changed between 3.10 and 3.12; Changelog for 3.11.2 states: “Add support for hatch patterns defined per entity”. That may be?

Attached drawing from an older version; open in current and see a black box where there should be earth. Change scaling of hatch from 10 to 254 and it will be exactly the same it was when saving the file.

Curiously, that is like swapping inches and mm? Looking into prefs, there is a new drop down: “Messsytem für Linien und Schraffuren” and it read “imperial”; making it metric and bingo, my drawing looks as intended!

This is bad, because each drawing has to be changed! I changed the application default drawing setting to metric and the existing drawing still had imperial set…

Probably a heuristic was on order? If the drawing does not specify the new setting, and the drawing units is metric, use metric?

1288QCAD (main)Feature RequestLowPrint Preview Scaled RulersAssigned
0%
1 Task Description

Would be nice, if in print preview QCAD rulers would switch to paper dimensions. Chat here http://www.qcad.org/rsforum/viewtopic.php?f=89&t=3793

After all, print preview is not just the drawing on white, isn’t it? Everything else should stay in drawing units. Just the rulers, maybe a preference?

1242QCAD (main)Bug ReportLowSVG import DPI box should use localized decimal separat...Assigned
0%
Task Description

I wanted to make it so, that SVG units translate 1:1 into CAD units; I use the German localized QCAD and entered 25,4 into the box with the wrong result, i.e. the same as 25; Entering 25.4 got me what I wanted: The question box needs the point and ignores the comma. Would be nice if it could use the localized separator.

1230QCAD (main)Feature RequestLowFile > PDF Export / SVG Export: export layersAssigned
0%
Task Description

Dear Andrew, just in case you should ever run out of ideas for enhancements; As an advisor I sometimes get PDF files and recently, some CAD drawings contained layers, which is kind of nifty to reduce the clutter.

Sadly though, qprinter/qpainter seem to be unaware of OCG (Optional Content Groups, the PDF jargon for layers) at the moment, so my plea is for the back burner now. Probably in SVG though it can be done? Yet that is of a little less use, maybe…

 1182 QCAD (main)Bug ReportLow Invisible dashed circles/splines Closed
100%
Task Description

Starting with 3.7.7 I noticed, that some parts in drawings are missing: affected are some circles and (some) closed splines. These were created with earlier releases of qcad3.

Attached a file that has two circles, only one of them showing at first (drawn in 3.8.0); set line-display “screen” (NL command) to see the other (drawn earlier). From the dxf serialization (dxflib or teigha does not matter) I do not see where that should stem from or how to fix this.

At zero degrees there is a little dot though, and also, only certain dashed line-types “hide” the (outer only) circle.

Filed under Ubuntu, not tested on windows etc.

 1178 ECMAScriptBug ReportLow scripting definition point and vertical DIMs Closed
100%
Task Description

A regression? In my script I draw stacked dims (depth d):

    var c = RVector.getAverage(a, b); // Zentrum der Messung
    var dim = new RDimRotatedData();
    dim.setExtensionPoint1(a);
    dim.setExtensionPoint2(b);
    c.x = a.x + d * 50 + ( d > 0 ? 50 : -50 );
    dim.setDefinitionPoint(c);
    dim.setRotation(Math.PI / 2);

Curiosly, this would work in 3.7.5 but fail in 3.7.7: the DefinitionPoint would be ignored then, but only in vertical ones, not in horizontal ones!

More curiously still: The DIM gets drawn right as soon as I move the setRotation call before the setDefinitionPoint call!

PS: the debugger proved very helpful again :)

 1135 QCAD (main)Bug ReportHigh Minimally reproducible segfault when moving a leader in ...Closed
100%
Task Description

Hi,

I have a nice minimally reproducible bug on QCAD v3.7.4 on Mac OS X 10.9.5 (Mavericks).
QCAD will segfault whenever I take the following steps:

1. Open a new document
2. Create a leader object (D,E) in the default ‘0’ layer. Leave its style and color defined by the layer, as per default.
3. Create a new layer, with a non-default line style or color. The line weight & layer name do not matter.
4. Select the leader object previously create
5. Open the property editor and assign the object to the new layer just created.
Every time, this will cause QCAD to segfault on my machine. The crash report is attached.

Another minimally reproducible path to the same error is to do the following:
1. Open a new document
2. Create a leader object (D,E) in the default ‘0’ layer. Give it a custom color and line style that over-ride the layer defaults.
3. Create a new layer, with a non-default line style or color. The line weight & layer name do not matter.
4. Select the leader object previously created.
5. Open the property editor and assign the object to the new layer just created.
6. Still in the property editor, switch the leader object’s color back to ‘By Layer’.
The same segfault will occur.

It seems that the crash is triggered by the action of changing a leader object’s color (and/or line style) in a manner that requires the object to check the containing layer’s default color and style. You can achieve this by either changing the object’s layer, or switching the color and style from being custom defined to ‘by layer’, as long as the selection requires the line’s appearance to change.

Any thoughts? My machine’s crash report is attached.

Dan

 1076 QCAD/CAMBug ReportHigh Crash on Mac OS X when using internal Trackpad Closed
100%
1 Task Description

Hi,

I have just updated my Mac OS from 10.9.2 to 10.9.4. QCAD 3.6.2 seems to be working normally under the newest version of Mac OS, but has developed a very specific bug which leads to reproducible crashes when a text object is edited.

Steps to minimally reproduce:
1. Open QCAD
2. Create a text object
3. Place the text object on the canvas
4. double-click the text object and edit its contents
5. click OK to accept changes
6. repeat from step 4 three or four times.

After several attempts to edit a text object, QCAD will crash with EXC_BAD_ACCESS (SIGBUS) in thread 0 (QCoreApplication).
The crash can also be triggered by moving the text object around on the canvas (instead of editing its contents).
The bug does not require anything else (no other objects on the canvas, no particular font, occurs in both new and previously saved documents).

Apart from this bug, QCAD seems to work fine on OS X 10.9. The text editing crash did not occur before the latest OS update. No other applications on my system seem to be having any problems. If this problem can be fixed, I think QCAD will be quite usable on 10.9.

See also related bugs in:
 FS#1091 

 1072 QCAD (main)Feature RequestLow Resolve Relative paths on command line Closed
100%
Task Description

I have aliased qcad to run it from terminal. There is a small glitch when opening a file from a different location using relative path names:

$ alias qcad
alias qcad='/opt/qcad-3.6.0-pro-linux-x86_64/qcad'

$ cd /a
$ qcad some.dwg &
$ cd /b
$ qcad other.dwg

Import Error is shown:
> Can't open file
> /a/other.dwg.
> File is empty.

$ qcad /b/other.dwg # absolute path works

$ readlink /proc/pid-of-qcad/cwd
/opt/qcad-3.6.0-pro-linux-x86_64

Qcad somewhere stores the path, from where it is first launched. The next “launch” will not use the next location but refer to the first one when constructing the full path name of the file name in the argument.

Maybe that can be easily improved (the message is wrong too).

 969 QCAD (main)Bug ReportLow File - Bitmap export: exported bitmap file locked Closed
100%
Task Description

When I export a bitmap from qcad, windows picture preview will not show it, instead print the message: “the file is in use by another application”. Maybe the exporter does not close the file?

 942 QCAD (main)Feature RequestLow Dirty flag (star) in MDI tab invisible when too many ta ...Closed
100%
Task Description

A window with a drawing that has unsafed changes gets an asterisk appended to its name in the tab title. When there too many tabs the title gets shortened and the star cannot be seen then.

It was nice, when the star remained visible, after or in front of the ellipses.

Also it was nice, when the “windows” menu would mark files with changes in the same way.

 916 QCAD (main)Feature RequestLow SVG export: make zero line width behaviour configurable Closed
100%
Task Description

Somewhere in the 3.1 series the SVG exporter (both precise and PG) started to make lines that are zero (0) width in CAD 0.01 (@scale 1:1) points wide in exported files (0.1 @scale 1:10). I use such lines to constrain exported files to a common size and rather not have them show. In my view, this is a regression, as there is no reason for changing line weight, isnt it? If I wanted the lines to have weight, I’d draw them with a weight.

 818 QCAD (main)Bug ReportLow SVG Exporter crashes on polyline Closed
100%
Task Description

Attached sample drawing, that kills QCAD 3.1 beta when exporting to SVG.

The crash happens in line 38 of SvgExporterPG in function SvgExporterPG.prototype.exportPolyline

var pp = new RPainterPath(polyline.toPainterPath());
 730 QCAD (main)Bug ReportLow Svg PG export splines broken Closed
100%
Task Description

With the 3.0.3 point release (latest available for Linux systems), SVG PG exporter fails to export splines:

Uncaught exception at /opt/qcad-3.0.3-prof-linux-x86/scripts/ImportExport/SvgExporter/SvgExporterPG.js:72: TypeError: Result of expression ‘splineSeg.getDegree’ [undefined] is not a function.
72 var degree = splineSeg.getDegree();

The objects returned from getBezierSegments() do not provide the methods of RSpline.

704QCAD (main)Feature RequestLowOld Hatch FunctionAssigned
0%
3 Task Description

It would be nice to implement the old hatch function as a tile function in parallel with the newer more industry standard hatch function. A tile function that would allow overlap +/- would be even better, and a great productivity boost, almost like an array within a set of bounds.

Thanks, Bob

 603 QCAD (main)Bug ReportLow SVG import straight path segments Closed
100%
Task Description

I noticed, that paths are not fully imported into QCAD. I rewrote case “m” of “SvgImporter” like below, that way also straight line segments are drawn correctly. Case “M” should be similar:

      case 'm':
          x = ox = coords[0];
          y = oy = coords[1];
          x0 = x;
          y0 = y;
          for (k=2; k<coords.length; k+=2) {
              x += coords[k+0];
              y += coords[k+1];
              this.importLine(ox, oy, x, y);
              ox = x;
              oy = y;
          }
          break;
512QCAD (main)Feature RequestLowModify stretch and Restrict orthoAssigned
0%
Task Description

The modify stretch tool wants first and second corner, start and end point, then starts afresh. When I turn on restrict horizontally eg to align two points between start and end, the restriction sticks and I have to call restrict none, to be able to perform the next iteration, set the first corner then.

So, in the quest for a comfortable user interface, it was nice, if the modify stretch first/second corners parameter setting was not affected by current restrict/ortho etc. settings. Actually, that does not make any sense at all anyways, does it, a rectangle is defined by two degrees of freedom, isnt it?

 483 QCAD (main)Bug ReportLow Return value of autostart applications Closed
100%
Task Description

Whe qcad runs a script from the autostart command line argument, then, if this script ends with an error, the qcad main function should not return 0, but something different, because the return value of 0 is conventionally used to indicate successful operation.

I enter this as a bug, rather than a feature request, because this convention is so entrained (at least in *NIX land), that it breaks fundamental expecations on application behaviour.

 476 QCAD (main)Bug ReportLow Stretching dimension Closed
100%
Task Description

Draw a horizontal dimension. Stretch (S S) it. The label remains in place. It should instead go to the new center. (Unless it was manually positioned perhaps...)

Workaround: Pick one extension and drop it to where it was, label gets centered.

 459 QCAD (main)Bug ReportLow Bitmap Export is Cropping a few pixels too many from bo ...Closed
100%
Task Description

When exporting bitmap images the crop is just a bit too tight, and is resulting in lost parts of the drawing. In QCAD2 there was a very small padding of pixels around the exported object that prevented that problem.

 448 QCAD (main)Feature RequestLow Put the asterisk in tab title of modied files in front  ...Closed
100%
Task Description

Put the asterisk in tab title of modified files in front of the name, so it can be seen, when there are so many tabs, that the names will be truncated.

 442 QCAD (main)Bug ReportMedium Library incompatible licence Closed
100%
Task Description

Reading  FS#441  I fired up the Library Browser, which works fine here, RC2 from tgz on Ubuntu 10.04, BTW.

The freedxf.com drawings “horseman” and two “women” claim to be “Creative Commons Attribution-NonCommercial-ShareAlike 3.0”. In my opinion, the “NonCommercial” clause does prohibit distribution in QCAD3, which is a commercial package. For a discussion see http://wiki.creativecommons.org/Defining_Noncommercial

 435 QCAD (main)Bug ReportMedium QCAD3 RC3 Windows XP - Stretch command does not appear  ...Closed
100%
Task Description

The modify tools → stretch command does not appear to function.

The two attachments contain the source drawing (blackburne_engine_breather_0210A.dxf) and five screen shots (qcad3_rc3_stretch.odt) showing the steps taken to replicate the problem.

I have also performed a similar exercise with a Linux trial version 3.0 RC2 (OpenSuse 11.4) with the same result.

Regards

 421 QCAD (main)Bug ReportLow Multiline Text in SVG Exporter PG Closed
100%
Task Description

Multiline text is in the wrong place. Please see patch below:

— SvgExporterPG.js~ 2011-11-04 22:08:57.000000000 +0100
+++ SvgExporterPG.js 2011-12-07 13:01:43.811533803 +0100
@@ -248,7 +248,8 @@

   this.writeStartElement("flowRoot"); // <flowRoot>
   this.writeFontAttributes();
   var bb = this.text.getBoundingBox();

- var pos = this.text.getPosition();
+ var pos = this.text.getPosition(); always (0,0) ?
+ var pos = bb.getCenter(); // still not right, but closer

   var x = this.convert(pos.x);
   var y = this.convert(pos.y);
   var a = 360 - RMath.rad2deg(this.text.getAngle());
 404 QCAD (main)Feature RequestLow New Program Icon Closed
100%
Task Description

Pretty icon for Gnome 3 desktop favorite.. Kind of subjective :)

 368 QCAD (main)Bug ReportLow Appearance preference Closed
100%
Task Description

RC1 is lazy in saving appearance to config. I noticed, because it always started with default window size. Maximizing was not carried over, also the panels were consistently reset.

Only when eg. dragging the handle to change cad-toolbar width not from preferences it would write an “appearance” section to the config file.

The appearance section should be written rather sooner than later.

 362 QCAD (main)Bug ReportLow Regression in SvgExporterPG.prototype.exportEntity Closed
100%
Task Description

In RC1 text in PG SVG will be in the wrong location. The position passed from native code to the SvgExporterPG.prototype.exportEntity is wrong:

Instead of the actual place of the text it gets the position of the surrounding block entity, or, for text that is not in a block, “0,0,0”.

Dimension labels are not affected by this. Also HAlign and VAlign are not passed correctly for text in the model-view block.

 324 ECMAScriptFeature RequestLow SVG export depends on GUI Closed
100%
Task Description

SvgExporter.js uses PrintPreview to parse the scale string, and therefore depends on the qt GUI part. That should not make maintenance harder to call RMath directly there? Results seem to match from a first look.

--- SvgExporter.js~	2011-10-20 14:11:45.527589416 +0200
+++ SvgExporter.js	2011-10-20 14:12:46.277502814 +0200
@@ -1,6 +1,5 @@
 include("scripts/library.js");
 include("scripts/date.js");
-include("scripts/File/PrintPreview/Print.js");
 
 /**
  * File exporter implementation for the SVG format.
@@ -116,7 +115,7 @@
     this.svgUnitAbbr = ret[1];
 
     // scale
-    this.scale = Print.parseScale(this.scaleStr);
+    this.scale = RMath.parseScale(this.scaleStr);
 
     var bb = this.doc.getBoundingBox();
     var size = bb.getSize();
 323 ECMAScriptFeature RequestLow Exceptions in headless scripts Closed
100%
Task Description

The capability of running headless, ie. without GUI, is a very welcome addition to QCAD. I suggest one more improvement:

When an exception occurs in a script (running from autostart) and no-gui was opted for on the command line, QCAD should not try to bring up the debugger ever (regardless of any preferences), but print the message of the exception and possibly a backtrace instead.

Otherwise all errors will produce the same message…

 318 QCAD (main)Bug ReportLow Text of dimensions label in SVG PG export  Closed
100%
Task Description

The labels of dimensions in PG exporter are moved half text-height. Thats a bit much, and actually, no such movement looks more true to the display of same in QCAD itself.

--- SvgExporterPG.js.orig	2011-10-15 18:57:29.994666881 +0200
+++ SvgExporterPG.js	2011-10-15 18:57:39.284666834 +0200
@@ -434,7 +434,7 @@
         //debugger;
         var angle = this.text.getAngle();
         //this.text.setAngle(entity.getAngle());
-        var offset = RVector.createPolar(this.text.getHeight()/2, angle + Math.PI/2);
+        var offset = RVector.createPolar(0, angle + Math.PI/2);
         this.text.move(offset);
         this.textColor = entity.getColor();
         this.exportText();
 317 QCAD (main)Bug ReportLow Debugger with -always-load-scripts Closed
100%
Task Description

Starting qcad Beta 3 with command line argument -always-load-scripts will bring up debugger:

Uncaught exception at /opt/qcad-3.0.0-beta3-prof-linux/scripts/library.js:2: RangeError: Maximum call stack size exceeded.
2 include(”sprintf.js”);

316QCAD (main)Feature RequestLowBlocks list and selected blockAssigned
0%
1 Task Description

Wouldn’t it be nice, if selecting a block in model view would somehow highlight (just like clicking a block in the list does) the selected block in the “Block List” window?

(Feature request sounds a little harsh, enhancement proposal would seem more apt.)

 315 QCAD (main)Feature RequestLow SVG PG export polylines Closed
100%
Task Description

Polylines may consist of lines and arcs. The SVG PG exporter writes them as all straight lines. A better mapping than polyline then was path, as is done with arcs now.

 314 QCAD (main)Bug ReportLow Polyline from segments puts result in layer 0 Closed
100%
Task Description

A polyline or polygon created from segments always ends up in layer 0, shouldn’t it stay in the same layer as the segments have been?

 300 QCAD (main)Bug ReportLow Dashed lines in SVG PG export Closed
100%
Task Description

Chat from  FS#194  singled out, so that can be closed.

Dash patterns in BETA2 are very much out of proportion. BETA2 always PG exports 1:1 and only scales strokes so that in the final rendering they match what a technical drawing would show. As dash patterns depend on stroke, both current stroke and final scale have to be brought in accord.

The patch below also restores the alignment of dashes, so that dashed lines do not end in a gap, at least in most occasions.

--- SvgExporterPG-orig.js	2011-09-15 23:11:40.000000000 +0200
+++ SvgExporterPG.js	2011-10-07 13:28:04.085376719 +0200
@@ -384,32 +384,29 @@
         continuous = true;
     }
     if (!continuous) {
-        //p.scale(this.getPatternFactor());
-        p.scale(1/this.scale);
+        // dash and gap lengths are to be proportional to line weight
+        // beware: line weight unit is 100 times millimeters, convert to current unit
+        // beware: the viewer scales lengths differently from weight
+        p.scale(RUnit.convert(this.weight / 100.0, RS.Millimeter, this.svgUnit) / this.scale);
         var num = p.getNumDashes();
-        var str = "";
+        var str = [];
         for ( var i = 0; i < num; ++i) {
             var len = Math.abs(p.getDashLengthAt(i));
-            // see FS#192:
-            //len = this.convert(len);
-            str += "" + len;
-            if (i < num - 1) {
-                str += ",";
-            }
-        }
-        additionalStyles += "stroke-dasharray:" + str;
-        
-        // does more harm than good
-//        if (isShape(this.shape)) {
-//            var length = this.shape.getLength();
-//            if (isNaN(this.offset)) {
-//                this.offset = this.getPatternOffset(length, p);
-//            } else {
-//                var num = Math.ceil(this.offset / p.getPatternLength());
-        //                this.offset -= num * p.getPatternLength();
-        //            }
-        //            additionalStyles += ";stroke-dashoffset:" + this.offset;
-        //        }
+            str.push(len);
+        }
+        additionalStyles += "stroke-dasharray:" + str.join(",");
+
+        // center dash-array
+        if (isShape(this.shape) && isFinite(this.shape.getLength())) {
+            var length = this.shape.getLength();
+            if (isNaN(this.offset)) {
+                this.offset = -this.getPatternOffset(length, p);
+            } else {
+                var num = Math.ceil(this.offset / p.getPatternLength());
+                this.offset -= num * p.getPatternLength();
+            }
+            additionalStyles += ";stroke-dashoffset:" + this.offset;
+        }
     }
 299 QCAD (main)Bug ReportLow Text of rotated dimensions in SVG PG export Closed
100%
Task Description

Sometimes the text of a dimension (that is in a block - just a suspicion of mine) will not get rotated. I do not know why this.text.getAngle() sometimes returns a wrong value, but there is a simple workaround: always rotate the text with the dimension:

--- SvgExporterPG-orig.js	2011-09-15 23:11:40.000000000 +0200
+++ SvgExporterPG.js	2011-10-07 13:07:03.715374911 +0200

@@ -428,9 +427,7 @@
         // dimension entity: export text:
         this.writeEntityComment(entity);
         this.text = entity.getTextData();
-//        var angle = this.text.getAngle();
-//        var offset = RVector.createPolar(this.text.getHeight()/2, angle + Math.PI/2);
-//        this.text.move(offset);
+        this.text.setAngle(entity.getAngle());
         this.textColor = entity.getColor();
         this.exportText();
         this.text = undefined;
 249 QCAD (main)Feature RequestLow Default Save Format Closed
100%
Task Description

It was nice to specify the default Format for saving files. 2010 is too young for distribution to unknown users, better use 2004 or so...

 248 QCAD (main)Bug ReportLow Drawing in print preview Closed
100%
Task Description

One can draw in print preview. If one does, QCAD starts acting confused, the model view gets restored with a fullbright white background.

Maybe best is to just disable all drawing and measuring in print preview?

Showing tasks 1 - 50 of 80 Page 1 of 21 - 2 -

Available keyboard shortcuts

Tasklist

Task Details

Task Editing