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)

IDCategoryTask TypeSeveritySummaryStatusProgress  desc
 222 QCAD (main)Bug ReportCritical MacOS X Lion Installation problem Closed
100%
Task Description

Installation problem.
After uneventful installation on MacOS X Lion 10.7.1 on a MacBook Pro Core I5 the QCAD will not launch by clicking into the app. When trying to launch the application by the command line I received an error message regarding the “plugin” folder, as follows:

al:MacOS everaldo$ ./QCAD
application directory: “/Applications/QCAD.app/Contents/MacOS”
working path: “/Applications/QCAD.app/Contents/Resources”
plugins folder does not exist

Renaming the folder from “/Applications/QCAD.app/Contents/PlugIns” to “Applications/QCAD.app/Contents/plugins” solved the problem.

Regards.

Everaldo de N. Peixoto
everaldo.peixoto@uol.com.br

 223 QCAD (main)Bug ReportLow No return to main window after opening a block window. Closed
100%
Task Description

I have a drawing imported from 2.2. I have tried to edit a block and the block window duly opens. However I can’t get back to my main drawing window. In the earlier version I could select a main drawing window. The window menu did not offer any other window to select. The window shown in the list was the name of the main file and clicking on it did nothing. The Tile and Cascade options worked but showed no other windows.

 224 QCAD (main)Bug ReportHigh Printing not working under Windows Closed
100%
Task Description

Printing does nothing.
Sometimes crashes on quite (possibly related to printing).
PDF export works (as a workaround).

 226 QCAD (main)Bug ReportCritical Editing and saving a file Closed
100%
Task Description

Hello,
Just started with the program. I opened drawing made under 2.2 pro to modify it. Everything works ok (deleting entities) but as soon as I start removing unused layers, I get an error message when trying to save my work (photo attached). The previouly saved file becomes an empty file...Working on Win7x64, logged as admin.
JJ

 229 QCAD (main)Bug ReportLow No grid display toggle Closed
100%
Task Description

No way to toggle the grid view on or off?

 234 QCAD (main)Bug ReportHigh File completely erased/corrupted; then duplicates upon  ...Closed
100%
Task Description

I have been working with a file in 2.2 which I then opened with beta 3. All seemed to be well for a couple of days. Today the application closed itself. When I restarted and tried to load the file it came up duplicated. One tab showed nothing, the other showed my drawing with blue lines and the tab headers (file name) were identical except that the ‘blue line’ tab had an asterisk after the file name indicating that the file had been changed. Highlighting a ‘blue line’ element showed the properties with colour white.

I’m running 64bit Ubuntu 11.04. ‘Blue line’ file attached. Any quick way to change the blue lines to default white?

 237 QCAD (main)Bug ReportMedium Image remains displayed when it's layer is changed to h ...Closed
100%
Task Description

Ubuntu 11.04 64 bit.
Image imported into drawing in layer ‘pictures’.
Layer ‘pictures’ hidden.

QCAD 3 beta displays the image when zoomed out so that the whole drawing is visible within the working window.
It ‘disappears’ when the zoom is taken in such that the drawing exceeds the window display.

When the layer ‘pictures’ is visible the image behaves as expected, i.e. always visible.

 238 QCAD (main)Bug ReportLow Files given on command line don't open Closed
100%
Task Description

Files given on command line don’t open if paths are relative (CWD problem)

 239 QCAD (main)Bug ReportMedium part library unit conversion Closed
100%
Task Description
  • insert part in inch into mm drawing
  • block scale correct, but block reference also scaled
 240 QCAD (main)Bug ReportLow Tool 'Show only active layer' not in layer toolbar Closed
100%
Task Description

Tool ‘Show only active layer’ not in layer toolbar.

 241 QCAD (main)Bug ReportLow Autosave 10min saves every 1min Closed
100%
Task Description

Autosave 10min saves every 1min

See:
http://www.ribbonsoft.com/rsforum/viewtopic.php?t=1604

 242 QCAD (main)Bug ReportLow Dimension: no feet displayed in architectural format Closed
100%
Task Description

Dimension: no feet displayed in architectural format

(e.g. 79 19/32 instead 72 7 19/32)

See:
http://www.ribbonsoft.com/rsforum/viewtopic.php?t=1605

 243 QCAD (main)Bug ReportLow Dimension preferences: precision not saved Closed
100%
Task Description

Dimension preferences: precision not saved between preference dialog sessions.

See:
http://www.ribbonsoft.com/rsforum/viewtopic.php?t=1605

 245 QCAD (main)Bug ReportLow select contour with no line brings up debugger Closed
100%
Task Description

Select → Contour (T, C) and click into empty space, will cause an exception, REntityPointer being a null pointer (0×0) and not false, undefined or something like that.

 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?

 250 QCAD (main)Bug ReportLow Scrolling in Property Editor changes List Box elements Closed
100%
Task Description

Bug or Performance Issue? I’m not sure but it regularly trips me up and is counter intuitive.

In the right hand window generally if you scroll in the pane the list of items moves up and down as expected. E.g. Layer List and Block List.

However in Property Editor there are drop down list boxes and scrolling in the Property Editor pane dangerously scrolls elements within any drop down list that the mouse pointer happens to alight upon. This can lead to inadvertently changing properties.

I propose that a drop down list should not scroll until the list is opened. Scrolling in the Property Editor pane should scroll the Property Editor contents.

 251 QCAD (main)Bug ReportMedium wrong tab names Closed
100%
Task Description

After I open the second file, the tab name of the first file is changed to the name of second file. After that I see two tabs with the same names but with two different files.

 252 QCAD (main)Bug ReportMedium Displayed line thickness too thick. Closed
100%
Task Description

This manifestation happened after I had loaded an existing drawing, made modifications, then used print preview and adjusted the scale to fit the paper.

The file was closed. Upon reopening lines designated as .25mm were unusually thick such that two lines 2mm apart appeared as one solid line. Placing the cursor over the line showed it was comprised of two lines.

Changing the properties of a line to make it thinner did not help with one exception and that was to set the line thickness to default, when the two lines became visible.

 253 QCAD (main)Bug ReportHigh coordinate input Closed
100%
Task Description

Coordinate input broken.

 254 QCAD (main)Bug ReportLow Snap to ellipse / ellipse intersections Closed
100%
Task Description

Snap to ellipse / ellipse intersections

 257 QCAD (main)Bug ReportLow autosnap to reference point Closed
100%
1 Task Description

Autosnap does not recognize the center of a circle as a reference point.

JJ

 258 QCAD (main)Bug ReportMedium RDwgExporter.cpp#190 Closed
100%
Task Description
Debug:    "RDwgServices::printErrorStackTrace: Requires an integer between 1 and 6." 
Fatal:    ASSERT: "false" in file RDwgExporter.cpp, line 190
./qcad: line 3: 24327 Aborted                 LD_LIBRARY_PATH=. ./qcad-bin $@

 261 QCAD (main)Bug ReportHigh Complete loss of all file data when deleting a layer in ...Closed
100%
Task Description

Complete loss of data in file doing this:-

Open a file with multi layer content.
Delete a layer (in my case this happened without any ‘are you sure’ checks, a bug in itself?)
Attempt to save the file.
An error message reports disk full or no permission. (disk not full and I logged on as normal)
Close QCAD beta3
Open QCAD beta 3 and attempt to load file. Error message reports no permission or unrecognised format.
Close QCAD beta 3

Open QCAD 2.2 and load file.
File loads ok but has default layer (0) only and no content.
Using Ubuntu ‘Properties’ file is reported as having a size of zero bytes.

 263 QCAD (main)Bug ReportLow Hide layer / block should deselect entities on it Closed
100%
Task Description

Hide layer / block should deselect entities on it

 266 QCAD (main)Bug ReportLow Grid display Closed
100%
Task Description

Application Preferences: Grid display off not working

 270 QCAD (main)Bug ReportLow Line type scaling Closed
100%
Task Description

Line type scaling

See:
http://www.ribbonsoft.com/rsforum/viewtopic.php?t=1599

 271 QCAD (main)Bug ReportLow Print Preview problem with an imported 2.2.2.0 drawing Closed
100%
Task Description

Frozen window in print preview.
Message QT Script Debugger:

Error Log: So 18. Sep 13:31:25 2011 Uncaught exception at C:/Programme/QCAD 3 Beta2/scripts/Snap/RestrictHorizontal/../..\WidgetFactory.js:441: Error: cannot access member `objectName’ of deleted QObject

Console: Welcome to the Qt Script debugger.
Debugger commands start with a . (period).
Any other input will be evaluated by the script interpreter.
Type “.help” for help.

Uncaught exception at C:/Programme/QCAD 3 Beta2/scripts/Snap/RestrictHorizontal/../..\WidgetFactory.js:441: Error: cannot access member `objectName’ of deleted QObject
441 if (isNull(c.objectName) || c.objectName==”“) {

To exit only possible with the Windows Task Manager!

 272 QCAD (main)Bug ReportLow Exception Linux Closed
100%
Task Description

Welcome to the Qt Script debugger.
Debugger commands start with a . (period).
Any other input will be evaluated by the script interpreter.
Type “.help” for help.

Uncaught exception at C:/Programme/QCAD 3 Beta2/scripts/File/PrintPreview/../..\library.js:635: Error: cannot access member `objectName’ of deleted QObject
635 if (!isNull(child.objectName) && child.objectName != ““) {

 273 QCAD (main)Bug ReportLow Opening files drawn in previous versions, with layers t ...Closed
100%
Task Description

When opening a multi layered file, which has been saved in a previous version with some layers turned off, the following happens:

The file is loaded, all layers are shown as switched on.
The view contains only those layers that were switched on when previously saved.

Repeatable

If the file is loaded with all layers turned on, then saved (all within beta3-2)
then upon reopening:-

The file is loaded and the layers are shown with status as saved.
The view is as expected showing just the ‘on’ layers.

If all the layers are then switched on, the view is unchanged.

 274 QCAD (main)Bug ReportLow previous tab is renamed by the new opened file Closed
100%
Task Description

When opening a new tab, previous tab is renamed by the new opened file.

Tested on Ubuntu Natty amd64

 276 QCAD (main)Bug ReportLow Hatch not working if 'island' is a block Closed
100%
Task Description

If a simple polygon is drawn and a rectangle created within it; the whole then selected and hatch applied; hatching works as expected. The hatching is within the polygon but not within the rectangle.

If the rectangle is made into a block, then hatching does not work at all when the block is included in the selection. If the block is not selected and the polygon is, then all within the polygon is hatched, including the block.

 278 QCAD (main)Bug ReportLow ECMAScript: all scripts should be read as UTF-8 Closed
100%
Task Description

Scripts that are included through the ECMAScript include function are read with a default constructed QTextStream. UTF-8 should be forced.

 279 QCAD (main)Bug ReportMedium library.js:638: Error: cannot access member `children'  ...Closed
100%
Task Description
  • QCAD was running during the lunch break
    • one drawing opened in print preview
    • another drawing opened (normal mode)
  • switched to another virtual desktop
        if (!isNull(child.objectName) && child.objectName != "") {
            ca[child.objectName] = child;
        }
=>      if (!isNull(child.children) && child.children().length != 0) {
            getWidgets(child, ca);
        }
Uncaught exception at /home/martin/workspace/rsframework/scripts/library.js:638:
Error: cannot access member `children' of deleted QObject
638	        if (!isNull(child.children) && child.children().length != 0) {
qsdb> child
Error: cannot access member `toString' of deleted QObject
qsdb> isNull(child)
true
qsdb> .bt
#0  getWidgets(widget = QToolBar) at /home/martin/workspace/rsframework/scripts/library.js:638
#1  <anonymous>(resume = true) at scripts/File/PrintPreview/PrintPreview.js:235
#2  <anonymous>() at /home/martin/workspace/rsframework/scripts/Idle/../EAction.js:237
#3  <anonymous>() at /home/martin/workspace/rsframework/scripts/File/
PrintPreview/../../Idle/DefaultAction/DefaultAction.js:119
#4  <global>() at -1
 280 QCAD (main)Bug ReportLow dxf import: vertical text position Closed
100%
Task Description

see 404011_0310_001.dxf

 281 QCAD (main)Bug ReportLow dxf import: show paper space by default Closed
100%
Task Description

dxf import: show paper space by default if whole drawing is constructed on paper space or read ‘current block’ from sxf if available.

 282 QCAD (main)Bug ReportLow dxf import: single line text: diameter, plus minus, ... Closed
100%
Task Description

dxf import: single line text: diameter, plus minus, degree shown as c, p, %%d

 283 QCAD (main)Bug ReportLow property editor: shift - left arrow to select broken Closed
100%
Task Description

property editor: shift - left / right arrow to select in line edit broken (hot key for next / prev tab)

 284 QCAD (main)Bug ReportMedium Line Spacing Factor get lost in saved documents Closed
100%
Task Description

When I open a saved document, the “Line Spacing Factor” it return to 1.

Tried several times, same result.

Carlo Couvert

 285 QCAD (main)Bug ReportHigh Printing not working under Windows Closed
100%
Task Description

I cannot print directly from the program: clicking “printprewiu” ,appears icon “print”,clicking it opens the printer installed window, but then it not print anything. greetings

 286 QCAD (main)Bug ReportHigh mutex lock failed Closed
100%
Task Description

Starting qcad 3 beta 2 under xubuntu 10.04, there are several warnings and debug messages. The “mutex lock failed” seems to be worth reported.

Complete console output:

#77-Ubuntu SMP Tue Sep 13 19:40:53 UTC 2011
i686
application directory:  "/home/smf/qcad-3.0.0-beta2-trial-linux" 
working path:  "/home/smf/qcad-3.0.0-beta2-trial-linux" 
library path:  "/home/smf/qcad-3.0.0-beta2-trial-linux/plugins" 
Debug:    Init script plugins... 
Debug:    TIMER:  1424 ms -  "loading and initializing plugins" 
Warning:  RScriptHandlerEcma::doScript: engine busy: aborting evaluation of script: 

 "scripts/File/NewFile/NewFile.js" 

 
Warning:  QScriptEngine::newVariant(): changing class of non-QScriptObject not supported
Debug:    Creating storage... 
Debug:    Creating spatial index... 
Debug:    Creating document... 
Debug:    Creating MDI child... 
Debug:    Initialize Viewports... 
Debug:    Init graphics view... 
Debug:    Init scrollbars... 
Debug:    Init rulers... 
Debug:    Init idle and default actions... 
Warning:  QScriptEngine::newVariant(): changing class of non-QScriptObject not supported
Debug:    RDocumentInterface::deleteTerminatedActions: mutex lock failed 
Debug:    lock failed:  "EACTION FINISH: scripts/Snap/Auto/Auto.js" 
Debug:    locker:  "NEW" 
Debug:    lock failed:  "EACTION RESUME: scripts/Idle/Reset/Reset.js" 
Debug:    locker:  "NEW" 
Warning:  QScriptEngine::newVariant(): changing class of non-QScriptObject not supported
Debug:    RDocumentInterface::deleteTerminatedActions: mutex lock failed 
Debug:    lock failed:  "EACTION FINISH: scripts/Snap/RestrictOff/RestrictOff.js" 
Debug:    locker:  "NEW" 
Debug:    lock failed:  "EACTION RESUME: scripts/Idle/Reset/Reset.js" 
Debug:    locker:  "NEW" 
Debug:    Show MDI child... 
Debug:    lock failed:  "RMainWindowQt::subWindowActivated" 
Debug:    locker:  "NEW" 
Debug:    Init event handler... 
Debug:    updateScenes... 
Debug:    updateGuiActions... 
Debug:    notifyListenersSlot... 
Warning:  QScriptEngine::newVariant(): changing class of non-QScriptObject not supported
Debug:    RDocumentInterface::deleteTerminatedActions: mutex lock failed 
Warning:  QScriptEngine::newVariant(): changing class of non-QScriptObject not supported
Debug:    RDocumentInterface::deleteTerminatedActions: mutex lock failed 
Debug:    setActiveSubwindow... 
Warning:  QScriptEngine::newVariant(): changing class of non-QScriptObject not supported
Debug:    RDocumentInterface::deleteTerminatedActions: mutex lock failed 
Warning:  QScriptEngine::newVariant(): changing class of non-QScriptObject not supported
Debug:    RDocumentInterface::deleteTerminatedActions: mutex lock failed 
Debug:    lock failed:  "EACTION FINISH: scripts/Idle/Reset/Reset.js" 
Debug:    locker:  "RMdiChildQt::closeEvent" 
Warning:  QMainWindow::saveState(): 'objectName' not set for QDockWidget 0xc0a1be0 'Trial;
Debug:    lock failed:  "RMainWindowQt::subWindowActivated" 
Debug:    locker:  "RMainWindowQt::closeEvent" 
Debug:    autostart.js: main(): end. 
 289 QCAD (main)Bug ReportLow Extra (superfluous) reference points show with text fro ...Closed
100%
Task Description

Dear Andrew,

When I open a dxf file created by QCad2 in QCad3 I see extra reference points to the right when selecting the text. I assume that these reference points have no function. Refer to attached dxf file.

Regards, Rutger

 290 QCAD (main)Bug ReportLow Arrow on Leaders do not scale  Closed
100%
Task Description

I consider this a bug or at least poor software design.

When I edit the drawing preferences and change the arrow size (under the Dimensions tab), the arrows of my dimensions change as expected, but those of the leaders to not change.

No drawing preference exists to adjust the leaders separately, and scaling a leader does not scale its arrow. I currently must delete my leaders and redraw them completely to change the arrow size. Very inconvenient.

P.S. I’m using QCad 2.0.5.0-Free-1 (Community Edition) and didn’t see that version in your list. Does it have another name?

 291 QCAD (main)Bug ReportLow Tangent Point - Circle Closed
100%
Task Description

See:
http://www.ribbonsoft.com/rsforum/viewtopic.php?t=1642

 294 QCAD (main)Bug ReportLow Printing: Exception: page tags Closed
100%
Task Description

Uncaught exception at C:/DISEGNO/QCAD Professional/scripts/File/PrintPreview\Print.js:345: Error: QFont::QFont(): could not find a function match; candidates are: QFont() QFont(QFont arg1) QFont(QFont arg1, QPaintDevice pd) QFont(String family, int pointSize, int weight, bool italic)

 295 QCAD (main)Bug ReportLow SEGFAULT in Plugin.prototype.initDoc() Closed
100%
Task Description

Plugin.js:

/**
 * \internal Called once on startup.
 */
Plugin.prototype.initDoc = function() {
    // TODO crashes under OpenSUSE 11.4
    return;
    ...

Backtrace:

Thread [1] 31002 (Suspended : Signal : SIGSEGV:Segmentation fault)	
	strncmp() at 0xb505089a	
	__xmlParserInputBufferCreateFilename() at xmlIO.c:2,525 0x92c27b9	
	xmlParserInputBufferCreateFilename() at xmlIO.c:2,559 0x92c284a	
	xmlNewInputFromFile() at parserInternals.c:1,549 0x9285697	
	xmlDefaultExternalEntityLoader() at xmlIO.c:3,881 0x92c45fd	
	xmlLoadExternalEntity() at xmlIO.c:3,941 0x92c46f6	
	xsltDocDefaultLoaderFunc() at documents.c:85 0x922b0d9	
	xsltParseStylesheetFile() at xslt.c:6,726 0x9224da3	
	RXslt::parseStylesheet() at RXslt.cpp:14 0x9212ce7	
	REcmaXslt::parseStylesheet() at REcmaXslt.cpp:196 0x8dff0e4	
	0xb6bd813c	
	0xb6ac1f68	
	0xb6a9164c	
	0xac23d732	
	0xb6a44262	
	0xb6a445f7	
	0xb6bb0f92	
	QScriptEngine::evaluate() at 0xb6bba46f	
	RScriptHandlerEcma::eval() at RScriptHandlerEcma.cpp:775 0x87d1bf4	
	RScriptHandlerEcma::doScript() at RScriptHandlerEcma.cpp:771 0x87d1ad8	
	RScriptHandler::init() at RScriptHandler.cpp:31 0x8f9bf9e	
	main() at main.cpp:218 0x87cb5bf	

/rsframework/src/xml/xml/libxml2/xmlIO.c:

#ifdef HAVE_ZLIB_H
	if ((xmlInputCallbackTable[i].opencallback == xmlGzfileOpen) &&
		(strcmp(URI, "-") != 0)) {
	    if (((z_stream *)context)->avail_in > 4) {
	        char *cptr, buff4[4];
		cptr = (char *) ((z_stream *)context)->next_in;
		if (gzread(context, buff4, 4) == 4) {
		    if (strncmp(buff4, cptr, 4) == 0)
===>		        ret->compressed = 0;
		    else
		        ret->compressed = 1;
		    gzrewind(context);
		}
	    }
	}
#endif

 296 QCAD (main)Bug ReportLow Segmentation Fault: Mac OS X: Print Preview Closed
100%
Task Description

Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x9392df87 objc_msgSend + 23
1 QtGui 0x05006ceb -[QCocoaWindow sendEvent:] + 267
2 com.apple.AppKit 0x902b760b -[NSApplication sendEvent:] + 6431
3 QtGui 0x0500a3ed -[QNSApplication sendEvent:] + 93
4 com.apple.AppKit 0x9024b253 -[NSApplication run] + 917
5 QtGui 0×05014481 QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 1505
6 QtCore 0x04d60941 QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 65
7 QtCore 0x04d60c8a QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 170
8 QtCore 0x04d620e6 QCoreApplication::exec() + 182
9 ...ript_core_debug.1.0.0.dylib 0x1dec391e qtscript_QCoreApplication_static_call(QScriptContext*, QScriptEngine*) + 1316 (qtscript_QCoreApplication.cpp:314)
10 QtScript 0x04af8318 QScript::FunctionWrapper::proxyCall(QTJSC::ExecState*, QTJSC::JSObject*, QTJSC::JSValue, QTJSC::ArgList const&) + 136
11 QtScript 0x04a10871 QTJSC::NativeFuncWrapper::operator()(QTJSC::ExecState*, QTJSC::JSObject*, QTJSC::JSValue, QTJSC::ArgList const&) const + 113
12 QtScript 0x049e5ac9 cti_op_call_NotJSFunction + 489
13 ??? 0x202e626f 0 + 539910767
14 QtScript 0x0499d057 QTJSC::Interpreter::execute(QTJSC::EvalExecutable*, QTJSC::ExecState*, QTJSC::JSObject*, int, QTJSC::ScopeChainNode*, QTJSC::JSValue*) + 1031
15 QtScript 0x0499d351 QTJSC::Interpreter::execute(QTJSC::EvalExecutable*, QTJSC::ExecState*, QTJSC::JSObject*, QTJSC::ScopeChainNode*, QTJSC::JSValue*) + 97
16 QtScript 0x04aca7b6 QScriptEnginePrivate::evaluateHelper(QTJSC::ExecState*, long, QTJSC::EvalExecutable*, bool&) + 582
17 QtScript 0x04acb011 QScriptEngine::evaluate(QString const&, QString const&, int) + 801
18 com.ribbonsoft.qcad 0x0003868b RScriptHandlerEcma::eval(QString const&, QString const&) + 57
19 com.ribbonsoft.qcad 0x00037c6f RScriptHandlerEcma::doScript(QString const&, QStringList const&) + 805
20 com.ribbonsoft.qcad 0x009c3b8d RScriptHandler::init(QString const&, QStringList const&) + 641
21 com.ribbonsoft.qcad 0x0002f4b8 main + 3878 (main.cpp:218)
22 com.ribbonsoft.qcad 0x0002e289 _start + 208
23 com.ribbonsoft.qcad 0x0002e1b8 start + 40

 298 QCAD (main)Bug ReportMedium Elements of a hidden layer are deleted after saving and ...Closed
100%
Task Description

All drawing elements belonging to a layer are not existing anymore after:

  1. the layer has been made invisible (unselect the eye symbol of the layer),
  2. the drawing has been saved,
  3. the drawing has been closed
  4. and finally the drawing is reopened.

This behavior has been observed on the following OSes:

  • Windows XP SP3
  • Ubuntu 11.04
 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;
 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;
+        }
     }
 301 QCAD (main)Bug ReportMedium Open an existing DXF file Closed
100%
Task Description

When I open a dfx file I have made from AutoCad, QC will open the file fine but then when I try to save it I get a dialog box stating that the drawing was not saved and asks if I have permission or is the disk full. Yes, I have permission and no the disk is not full.
Then when I close the dfx file and try to reopen it the second time, QC will not open the file and a dialog box reads “Cannot open file, please check your access rights, the file format and the file extension”

Showing tasks 151 - 200 of 1768 Page 4 of 36<<First - 2 - 3 - 4 - 5 - 6 - Last >>

Available keyboard shortcuts

Tasklist

Task Details

Task Editing